Skip to content

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 ​

CapabilityLogdylnav
InterfaceLocal Web UI in any browser (127.0.0.1:8080)Terminal UI (ncurses / keyboard-driven)
Core architectureSingle Go binary with embedded Vue UINative C++ binary with embedded SQLite
Input sourcesstdin pipe, follow files, TCP socket/forward, REST API (POST /api/log), Go libraryLocal 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 formatsAuto-detects JSON; custom parsers written in TypeScript in the UI70+ built-in formats (Apache, Nginx, syslog, journald JSON, Postgres, Pino, OTLP, etc.)
Querying & filteringPoint-and-click facets, column filters, full-text search, TypeScript middlewaresRegex filters, SQLite SQL queries (;SELECT ...), PRQL, histograms
Multi-source mergingMultiple files via logdy follow or multiple processes via logdy socket + logdy forwardCollates multiple files/directories automatically by microsecond timestamp
Headless / scripting modelogdy utils (cut-by-string, cut-by-line-number, cut-by-date) + --append-to-fileFull headless mode (lnav -n -c ';SELECT ...' -c ':write-csv-to -')
Remote / SSH usageRequires SSH port forwarding (or --ui-ip + --ui-pass)Works natively over any plain SSH session with zero port forwarding
Retention modelIn-memory ring buffer (--max-message-count, default 100000) + optional rotated file sinkIndexes 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:

bash
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.log

Logdy 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:

bash
npm run dev 2>&1 | logdy

Open 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/logdy to 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:

bash
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:8080 to filter by status code, trace ID, or error level.
  • A rotated local copy is saved to ./api-debug.log if you need to grep it later.

With lnav:

bash
# Follow an existing log directory or file directly in the terminal
lnav /var/log/my-api/
  • Press / to search, :filter-in ERROR to filter, e / Shift+E to 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 / .bz2 archives 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/stderr from 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:

bash
brew install logdy
logdy demo 2

For installation options on Linux and Windows, check the Logdy Quick Start and CLI Reference.