A multi-source structured log viewer for the terminal. Tail files, pipe from Docker/kubectl, mix JSON and logfmt and plain text โ all in one interactive TUI.
- Structured-first. LogPilot parses your logs โ JSON fields, logfmt pairs, timestamps, levels โ not just regex-highlights keywords. That means real filtering, not cosmetic coloring.
- Format-agnostic. Auto-detects JSON, logfmt, and plain text. Tail a JSON API log and a plain syslog side by side in one view. No config files, no format declarations.
- Interactive, not passive. Live-scrolling TUI with search, vim keybindings, and color-coded levels. Not a pager you pipe through โ a tool you work in.
- Lightweight and modern. Single binary, no runtime dependencies. Built with Go and Bubble Tea โ starts instantly, stays under 20 MB RSS.
- ๐ Auto-format detection โ JSON, logfmt, plain text, no config needed
- ๐จ Color-coded log levels โ DEBUG (gray), INFO (blue), WARN (yellow), ERROR (red), FATAL (red bold)
- ๐ Multi-source input โ files, stdin/pipes, glob patterns (
*.log) - ๐ Live tailing โ follows files with rotation handling (rename, truncate)
- โฑ๏ธ Flexible timestamps โ relative (
2s ago), ISO 8601, local time - ๐ Dark & light themes โ auto-detects terminal background
- โจ๏ธ Vim-style navigation โ
j/k,G,gg,/search,n/N - ๐ฆ Backpressure handling โ configurable: block or drop-oldest when buffer is full
- โธ๏ธ Kubernetes pod log source
- ๐ณ Docker container log source
- ๐ SSH remote log source
- ๐ท๏ธ Field-based filtering (
level:error service:auth) - ๐ Trace correlation (group by trace ID)
- ๐ Timeline visualization
# View a log file
logpilot app.log
# Tail with live follow
logpilot -f /var/log/app/*.log
# Pipe from Docker
docker logs -f my-container 2>&1 | logpilot -
# Pipe from kubectl
kubectl logs -f deploy/api-server | logpilot -
# Mix multiple sources with glob
logpilot services/*.log /var/log/sysloggo install github.com/clarabennettdev/logpilot@latestGrab a prebuilt binary from Releases:
# Linux (amd64)
curl -LO https://github.com/clarabennettdev/logpilot/releases/download/v0.3.0/logpilot_linux_amd64.tar.gz
tar xzf logpilot_linux_amd64.tar.gz
sudo mv logpilot /usr/local/bin/
# macOS (Apple Silicon)
curl -LO https://github.com/clarabennettdev/logpilot/releases/download/v0.3.0/logpilot_darwin_arm64.tar.gz
tar xzf logpilot_darwin_arm64.tar.gz
sudo mv logpilot /usr/local/bin/
# Windows (amd64)
# Download logpilot_windows_amd64.zip from the releases page and add to PATHgit clone https://github.com/clarabennettdev/logpilot.git
cd logpilot
go build -o logpilot ./cmd/logpilotLogPilot auto-detects the format of each log line independently โ you can mix formats in the same stream.
{"timestamp":"2026-02-19T12:00:01Z","level":"info","msg":"request handled","method":"GET","path":"/api/users","duration_ms":42}
{"timestamp":"2026-02-19T12:00:02Z","level":"error","msg":"connection refused","host":"db-primary","port":5432}ts=2026-02-19T12:00:01Z level=info msg="request handled" method=GET path=/api/users duration_ms=42
ts=2026-02-19T12:00:02Z level=warn msg="slow query" query="SELECT *" duration_ms=1250
Feb 19 12:00:01 myhost sshd[1234]: Accepted publickey for deploy
Feb 19 12:00:02 myhost nginx: 192.168.1.1 - GET /health 200
kubectl logs -f deploy/api | logpilot -| Key | Action |
|---|---|
j / โ |
Scroll down |
k / โ |
Scroll up |
G |
Jump to bottom (latest) |
g g |
Jump to top |
f / Page Down |
Page down |
b / Page Up |
Page up |
/ |
Start search |
n |
Next search match |
N |
Previous search match |
t |
Toggle timestamp format |
w |
Toggle line wrap |
Tab |
Cycle theme |
q / Ctrl+C |
Quit |
| LogPilot | lnav | hl | tailspin | lazyjournal | |
|---|---|---|---|---|---|
| Interactive TUI | โ | โ | โ | โ | โ |
| Structured parsing | โ | โ | โ | โ | Partial |
| Multi-source | โ | โ | โ | โ | โ |
| Format-agnostic | โ | Partialยน | โ | โ | โยฒ |
| Language | Go | C++ | Rust | Rust | Go |
| Focus | Structured log TUI | Log file navigator | Log processor/pager | Highlight & tail | journald/docker/k8s |
ยน lnav supports many formats but requires format definitions for custom structured logs. ยฒ lazyjournal focuses on journald, Docker, and Kubernetes sources rather than arbitrary log files.
Honest take: lnav is the most mature and feature-rich tool here. tailspin and hl are excellent if you want fast, zero-config highlighting for piped output. lazyjournal is great if your logs come from systemd/Docker/k8s. LogPilot occupies the space between โ an interactive TUI that understands structured fields across arbitrary log sources.
logpilot/
โโโ cmd/logpilot/ # CLI entrypoint
โโโ internal/
โ โโโ app/ # Bubble Tea application model
โ โโโ parser/ # Format detection + parsing (JSON, logfmt, plain)
โ โโโ source/ # Input sources (file, stdin, glob)
โ โโโ tail/ # File tailing with rotation handling
โ โโโ theme/ # Dark/light theme definitions
โ โโโ buffer/ # Ring buffer with backpressure
โ โโโ ui/ # Lipgloss view components
โโโ docs/demos/ # GIF demos
โโโ go.mod
# Build
go build ./cmd/logpilot
# Run tests
go test ./...
# Run tests with race detector
go test -race ./...
# Benchmarks
go test -bench=. ./internal/parser/
# Lint
golangci-lint runContributions are welcome! Whether it's a bug report, feature request, or pull request โ all appreciated.
- Fork the repo
- Create a feature branch (
git checkout -b feat/my-feature) - Commit with clear messages
- Open a PR against
main
Please open an issue first for large changes so we can discuss the approach.
Built on the shoulders of the Charm ecosystem:
- Bubble Tea โ TUI framework
- Lipgloss โ Styling
- Bubbles โ TUI components



