ASYNC LOG PROCESSOR / TUI

Rust Log Analyzer

An asynchronous stream-processing prototype designed to ingest, aggregate, and interactively filter high-volume log streams directly in the terminal.

  • Rust
  • Python
  • Polars
  • Redis
  • Ratatui
Terminal screen showing real-time log monitoring with Rust Log Analyzer
Live interactive view of aggregated log metrics in the terminal

BACKGROUND

Diagnosing live microservice logs often means waiting for sluggish web consoles or dealing with frozen terminals when attempting ad-hoc local aggregations.

APPROACH

Delegated asynchronous I/O and UI rendering to Rust while offloading intensive dataframe computations to Polars in Python, connected asynchronously through Redis.

HOW IT WORKS

  1. 01

    Ingest

    Collect distributed logs via lightweight agents

  2. 02

    Buffer

    Order and buffer events in Redis streams

  3. 03

    Analyze

    Compute windowed aggregations with Polars

  4. 04

    Visualize

    Display live interactive charts in Ratatui

ARCHITECTURE

Architecture diagram showing Vector ingestion, Redis stream, Python Polars analytics, and Rust Ratatui UI
Scroll horizontally to explore

DESIGN DECISIONS

Decoupled Visualization and Compute

Utilizes Rust for smooth 60fps terminal updates and Python Polars for efficient analytical queries.

Redis Event Bus Decoupling

Ensures producers, aggregators, and viewers remain loosely coupled without direct process dependencies.

Keyboard-First Investigation

Built with vim-style navigation, regex filtering, and OSC 52 clipboard copying for lightning-fast investigations.

VERIFICATION

  • Docker Compose environment with live sample traffic producers
  • Demonstrated stable multi-channel throughput without frame drops
  • Clean separation of concerns verified across service boundaries

STATUS & NEXT

Functional prototype verifying the speed and ergonomics of asynchronous stream processing in the terminal.

NEXT STEPS

  • Configurable dynamic Redis connection discovery
  • Expanded automated test coverage for complex filter logic
  • One-click multi-container deployment scripts