Logdy vs lnav: Terminal Navigator vs Browser Log UI
If you inspect application logs locally, two open-source tools come up repeatedly: lnav (The Logfile Navigator) and Logdy. Both are zero-infrastructure, single-machine tools designed to replace fragile chains of tail -f, grep, awk, and jq. Neither requires shipping logs to a cloud service or deploying Elasticsearch.
Yet they take fundamentally different approaches. lnav is a mature, keyboard-driven terminal application (C++ / ncurses) with built-in SQLite virtual tables and automatic decompression. Logdy is a single Go binary that streams terminal output, files, TCP sockets, or HTTP requests into a local web browser UI with auto-generated facets and TypeScript parsers.
This comparison breaks down where each tool genuinely excels, where it falls short, and how to decide which one fits your workflow.
Side-by-Side Comparison
| Capability | Logdy | lnav |
|---|---|---|
| Interface | Local Web UI in any browser (127.0.0.1:8080) | Terminal UI (ncurses / keyboard-driven) |
| Core architecture | Single Go binary with embedded Vue UI | Native C++ binary with embedded SQLite |
| Input sources | stdin pipe, follow files, TCP socket/forward, REST API (POST /api/log), Go library | Local files, directories, globs (/var/log/**/*.log), stdin, archives |
Compressed files (.gz, .bz2, archives) | Not natively decompressed (pipe via zcat / gzcat) | Automatic on-the-fly detection and decompression |
| Built-in log formats | Auto-detects JSON; custom parsers written in TypeScript in the UI | 70+ built-in formats (Apache, Nginx, syslog, journald JSON, Postgres, Pino, OTLP, etc.) |
| Querying & filtering | Point-and-click facets, column filters, full-text search, TypeScript middlewares | Regex filters, SQLite SQL queries (;SELECT ...), PRQL, histograms |
| Multi-source merging | Multiple files via logdy follow or multiple processes via logdy socket + logdy forward | Collates multiple files/directories automatically by microsecond timestamp |
| Headless / scripting mode | logdy utils (cut-by-string, cut-by-line-number, cut-by-date) + --append-to-file | Full headless mode (lnav -n -c ';SELECT ...' -c ':write-csv-to -') |
| Remote / SSH usage | Requires SSH port forwarding (or --ui-ip + --ui-pass) | Works natively over any plain SSH session with zero port forwarding |
| Retention model | In-memory ring buffer (--max-message-count, default 100000) + optional rotated file sink | Indexes files directly on disk |
Where lnav Is Better
Be honest about what lnav does better—because in several classic sysadmin scenarios, lnav is hard to beat:
1. SSH-only servers without port forwarding
When you are SSH'd into a production Linux host over a bastion or restricted network, you often cannot—or do not want to—open a browser tunnel. Running lnav /var/log/nginx/error.log /var/log/syslog works immediately inside your terminal, merging both files chronologically by timestamp.
2. SQL analytics over log files
lnav exposes parsed log formats as SQLite virtual tables. Without loading data into a database, you can press ; and run SQL directly against your logs—or run it headlessly in a shell script:
lnav -n \
-c ';SELECT c_ip, count(*) AS hits, sum(sc_bytes) AS total_bytes FROM access_log GROUP BY c_ip ORDER BY total_bytes DESC LIMIT 10' \
-c ':write-csv-to -' \
access.logLogdy does not have a SQL aggregation engine. If you need GROUP BY, AVG(), or CSV exports from an Apache or Nginx access log, lnav is the right tool.
3. Compressed archives and 70+ built-in formats
lnav automatically detects and decompresses .gz and .bz2 files (and archives when built with libarchive) on the fly, and ships with over 70 built-in format definitions—from syslog and dpkg.log to PostgreSQL, MySQL, and OpenTelemetry Collector logs. With Logdy, you pipe compressed files manually (zcat app.log.gz | logdy) and rely on JSON auto-detection or write a custom parser.
Where Logdy Is Better
Logdy shines in the exact places where terminal UIs start feeling cramped or rigid:
1. Point-and-click exploration of wide JSON logs
Modern backend services emit wide JSON lines with 15–30 fields: request IDs, user IDs, latency, stack traces, nested payloads. In a terminal, horizontal scrolling and memorizing keybindings slow you down.
Pipe any JSON stream into Logdy:
npm run dev 2>&1 | logdyOpen http://127.0.0.1:8080 and Logdy lets you auto-generate table columns from JSON keys, click any row to inspect nested JSON in a side drawer, and toggle facets (like level=error or service=billing) with a single click—no regex syntax or keybinding cheat sheet required.
2. Custom parsing with TypeScript instead of PCRE JSON configs
Defining a custom log format in lnav requires writing a JSON format file with PCRE regular expressions. In Logdy, you can transform messy, non-standard, or mixed-format lines directly inside the browser using a TypeScript code editor (with type hints), or load a saved UI configuration via --config ui-config.json.
For teams with proprietary log formats—or apps that mix plain text startup lines with JSON request logs—writing five lines of TypeScript is dramatically faster than debugging a PCRE format schema.
3. Multi-process streaming over TCP sockets and REST API
lnav is built primarily around files on disk. Logdy supports multiple live ingestion modes out of the box (see command modes):
- Pipe any command:
docker logs -f api | logdy - Follow multiple files:
logdy follow --full-read api.log worker.log - Merge multiple local processes via sockets:bash
# Terminal 1: start one Logdy UI listening on two TCP ports logdy socket 8123 8124 # Terminal 2 & 3: forward separate commands into the same UI npm run dev:api 2>&1 | logdy forward 8123 npm run dev:worker 2>&1 | logdy forward 8124 - Push logs over HTTP (
POST /api/log): Useful for browser frontends, webhooks, scripts, or AI coding agents marking test runs (see REST API docs). - Embed directly in Go apps: Import
github.com/logdyhq/logdy-core/logdyto serve the Logdy UI directly from a Go binary without an external sidecar.
4. Sharing a view across a screen or IDE
Because Logdy runs in a browser, you can open http://127.0.0.1:8080 on a second monitor, inside VS Code or Cursor's Simple Browser, or share a password-protected dev server view (--ui-ip 0.0.0.0 --ui-pass secret) with a teammate during a pairing session.
Same Task, Both Tools: Live-Debugging a Node/Docker App
Suppose you want to watch live logs from a local service while keeping terminal output visible and saving a rotated copy to disk.
With Logdy:
docker logs -f --tail 100 my-api 2>&1 | logdy \
--fallthrough \
--append-to-file ./api-debug.log \
--rotate-file-size 20M- You keep seeing raw output in your terminal (
--fallthrough). - You open
http://127.0.0.1:8080to filter by status code, trace ID, or error level. - A rotated local copy is saved to
./api-debug.logif you need to grep it later.
With lnav:
# Follow an existing log directory or file directly in the terminal
lnav /var/log/my-api/- Press
/to search,:filter-in ERRORto filter,e/Shift+Eto jump between errors, and;to run SQL queries across everything in the directory.
Which One Should You Choose?
Use lnav when:
- You are troubleshooting directly over SSH on a remote Linux server.
- You need SQL aggregations (
GROUP BY, percentiles, counts) or headless CSV reports. - You are inspecting rotated
.gz/.bz2archives or standard system logs (/var/log/syslog, Apache, Postgres) where lnav's 70+ built-in formats work immediately.
Use Logdy when:
- You are developing locally and want a fast, visual browser UI for wide JSON or mixed-format logs.
- You want to merge live
stdout/stderrfrom multiple local processes, containers, or HTTP callers into one filterable timeline. - You prefer click-to-filter facets and TypeScript parsers over memorizing terminal keybindings and PCRE schemas.
- You want an embedded log viewer inside a Go application or alongside an IDE/AI coding agent.
Many developers keep both installed: lnav for SSH forensics and compressed server archives, and logdy for day-to-day local development and interactive JSON filtering.
Try Logdy in 30 Seconds
You can explore the interface right now with sample logs at demo.logdy.dev, or run it locally with zero configuration:
brew install logdy
logdy demo 2For installation options on Linux and Windows, check the Logdy Quick Start and CLI Reference.
