Log Viewer
A high-performance log viewer built on a Rust-side ring buffer. Free covers the normal single-pod workflow and deep history search; Pro adds multi-pod aggregation.
This page focuses on the log workflow itself: finding the right stream, searching quickly, and moving between single-pod inspection and workload-level debugging without losing context.
Overview
Krust streams container logs via the Kubernetes API and stores them in a Rust-side ring buffer capped at 100,000 lines. Parsing, streaming, and history search run off the main thread, and readers share a read lock, so scrolling and searching stay responsive while new lines arrive. Plain-text search across the entire buffer typically completes in 5–15ms.
The practical value is not just speed. It is that search, scrolling, and filtering stay usable while logs continue arriving, which is where many simpler viewers break down.
When This Viewer Helps More Than kubectl logs
- When the error could be in one of several replicas and you do not know which pod yet.
- When you need to search repeatedly across a large active stream.
- When structured logs are present and raw JSON is slowing down human scanning.
Persistent log panels
Keep log sessions in the native bottom panel, detach them into separate windows, and return without losing the session's search or scroll position. Clearing the buffer preserves active filters. Explore persistent workspace panels →
Log Level Filtering
Krust automatically detects log levels from each line and displays color-coded badges:
- E (Error) — Red, critical failures
- W (Warning) — Amber, potential issues
- I (Info) — Gray, informational messages
- D (Debug) — Light blue, verbose debug output
- T (Trace) — Dim, lowest-level tracing
All levels are shown by default. Click a level chip in the log toolbar to hide or show that level, and combine chips to narrow down exactly what you need.
Search
The log viewer has two complementary tools:
- Find bar — Press Cmd+F to find plain text (case-insensitive) in the lines currently shown. Use the up/down arrows, or Return and Shift+Return, to move between matches, with the current match highlighted in the scroll view.
- Filter field — Type in the filter field to show only matching lines. Plain text searches the whole retained buffer (deep history search). Turn on the
.*toggle for regex; regex filtering covers the most recent lines held in the view (about 10,000), not the full buffer.
This is best used as iterative narrowing: start with a service name or request ID, then switch to regex only when plain search is no longer precise enough.
Free covers both the visible working set and deep history search across the retained log buffer when the signal is no longer in the currently visible window.
Container Picker
For multi-container pods (sidecars, init containers, etc.), the container picker lets you select which container's logs to view, or show all containers at once. Krust opens the Pod's default container instead of failing with "a container name must be specified". Deployment, StatefulSet, DaemonSet, Job, and CronJob logs have a container picker too. Switch between containers without losing your scroll position or search state in other tabs.
Opening Logs
- Select a Pod and press l for logs or p for Previous Logs from the last terminated container. Cmd+L opens logs for the selected Pod from anywhere in the window.
- Deployments, StatefulSets, DaemonSets, Jobs, and CronJobs have a Logs action; CronJob logs show the Pods of that CronJob's Jobs.
- While a stream starts, the view shows Connecting…, Waiting for logs…, or No log output instead of an empty table.
Multi-Pod Aggregation Pro
Stream logs from all pods of a Deployment, StatefulSet, DaemonSet, Job, or CronJob simultaneously, or select several Pods and choose Aggregate Logs. Each line is prefixed with the pod name so you can trace requests across replicas. Toggle between aggregated view (all pods) and single-pod view at any time.
This is the mode that matters most during rollout failures, partial replica crashes, and noisy incidents where the failing pod is not obvious at first glance.
Structured Log Parsing Free
Krust detects JSON and logfmt structured logs automatically:
- JSON compact mode — Collapses JSON log lines into a readable summary with field discovery
- Field toggles — Hide noisy fields and focus on the values that matter
Structured mode is not just cosmetic. It reduces the time spent visually parsing long JSON lines when the real question is which fields changed and which values are outliers.
Log Inspector Free
Inspector stays free. Click any log line to view parsed fields and raw payload in one place while you continue scanning the stream.
Export & Bookmarks Free
Choose Export Logs… to save the lines currently shown (the active filter result, or the recent lines held in the view) to a text file for offline analysis or sharing. Bookmark important log lines with Cmd+B or the right-click menu to create a quick-navigation list — jump between bookmarks without scrolling through thousands of lines.
Recommended Usage Pattern
- Start with a single pod if the failing container is obvious.
- Switch to multi-pod aggregation when the failure is intermittent or replica-specific.
- Use bookmarks for the few lines that actually change your diagnosis, not for every error line.
Limits to Keep in Mind
- This is an operational log viewer, not a long-term log storage system.
- For retention, dashboards, and historical analytics, use your logging stack.
- For the exact implementation details behind the performance model, see Performance.