What Is The Logfile Navigator (lnav)?
Updated
lnav is a terminal-based log file viewer for small-scale log analysis. You point it at a directory or set of log files, and it merges, tails, searches, filters, and queries them from one interface. It runs locally with no server and no setup, and it automatically detects file formats and unpacks compressed files on the fly. It is a good fit if you work with logs on a single machine or a handful of files and want more structure than tail, grep, and less provide.
What lnav does
The site describes lnav as "an advanced log file viewer for the small-scale" and lists these core operations:
- Merge multiple log files into a single, time-ordered view
- Tail logs as they are written
- Search and filter across the combined output
- Query logs, including through a SQLite interface
Two behaviors reduce setup work:
- Automatic format detection. You do not configure a parser before opening a file.
- On-the-fly decompression. Compressed logs are unpacked as you view them.
The site also mentions online help and previews for operations, which matter when you are learning the keybindings.
When it is a good fit
lnav is aimed at small-scale work: logs on your own machine, a directory of related files, or a quick investigation where standing up a log platform would be overkill. The "no server, no setup" model means the main prerequisite is a terminal and the lnav binary.
It is less obviously the right tool if your logs live across many remote hosts and you need centralized retention, dashboards, or alerting. The site's framing is a local viewer, not a log management platform.
How it compares to standard terminal tools
The site claims lnav "can outperform standard terminal tools when processing log files" and supports this with a chart comparing CPU and memory usage on a 3.3GB access log. That chart was generated using lnav's SQLite interface. Treat the performance claim as the project's own benchmark: it is a reason to try lnav on large files, not a guarantee for your workload. The practical difference is that standard tools handle one operation at a time, while lnav keeps merge, filter, and query in one session.
Trying it without installing
The site offers a hosted demo:
$ ssh [email protected]
This lets you explore the interface before committing to a local install. The site does not state terms, limits, or availability for the demo, so treat it as a convenience rather than a guaranteed service.
Getting started
- Install lnav for your platform. The site points to its documentation for details; installation specifics are not covered on the landing page.
- Run lnav against a directory of logs. Per the site, it detects formats and handles compressed files automatically.
- Use the built-in help and operation previews to learn the navigation and filtering commands.
- For structured analysis, use the SQLite interface to query the loaded logs.
The site also links an introductory video and full documentation, which are the right next stops for command-level detail.
Bottom line
Choose lnav if you analyze logs locally in a terminal and want merging, filtering, and SQL-style querying without running a server. If you need centralized, multi-host log management, look at dedicated platforms instead.