lnav

Log file viewer.

Visit website ↗

Profile updated

Console’s review

· Reviewed by David Mytton

What we like

Point at a directory and it auto-detects file formats, parses, colorizes, merges, and displays them in your terminal. Can pretty print structured data e.g. JSON. Search as you type also streams in new log lines. Sessions can be restored. Query and filter the logs with SQL, which includes “virtual tables” to allow for comments, tags, and bookmarking.

Tradeoffs

Official downloads don’t include Arm binaries (although the macOS version via Homebrew is compiled for Apple Silicon). Does not inherit the terminal theme - need to configure custom colors separately.

Is lnav a fit?

Based on Console’s review published on 2023-01-05.

Who it’s for

Developers who work with log files should consider this tool

Why consider it

It can automatically detect and parse log file formats

Keep in mind

It does not inherit the terminal theme and requires custom color configuration

Console is a free weekly newsletter with short reviews of developer tools, covering strengths and tradeoffs. This review reflects Console’s assessment at publication on 2023-01-05. Features and limitations may have changed since the review date. Read our selection criteria and learn about Console.

Key facts

What it is

Terminal log file navigator.

Source ↗Checked

Company or maintainer

tstack / lnav contributors.

Source ↗Checked

Source and licensing

Free and open source, BSD-2-Clause.

Source ↗Checked

Tech stack

Runs on
  • FreeBSD
  • Linux
  • Windows
  • macOS
Integrates with
  • SQLite
Written in
  • C++

Checked

Source and notes

C++ log viewer uses SQLite queries; binaries/packages cover Linux, macOS, Windows and FreeBSD.

View research source ↗

Coverage may be incomplete. “Written in” describes implementation, not supported project languages.

Pricing

Free and open source (BSD-2-Clause). No paid hosted plan was verified from the cited repository; self-hosting infrastructure costs are separate.

Pricing source ↗Checked

Also consider

Discover your next favorite tool

Independent devtool reviews and the latest betas, in your inbox every Thursday. Free.