lnav is a terminal-based log file viewer and analysis utility designed to simplify troubleshooting across multiple applications and system services. It automatically recognizes supported log formats and decompresses archived files when necessary. Log messages from different sources are merged chronologically into a unified interactive view. Continuous monitoring follows file updates, renamed logs, and newly discovered files within monitored directories. Integrated indexing provides rapid navigation between warnings and errors. Users can search, highlight, and filter messages using regular expressions or SQLite expressions. Histogram visualizations reveal changes in message frequency over time. Structured log data can be queried directly through the embedded SQLite engine.
Features
- Automatic log format detection and decompression of supported archived or compressed log files
- Chronological merging of multiple log sources into a unified interactive terminal interface
- Continuous log monitoring with automatic detection of file updates, renamed logs, and newly created files
- Indexed warning and error navigation with regular expression searching and semantic syntax highlighting
- Integrated SQLite query engine for structured log analysis and customizable message filtering
- Time-based message histogram visualization with JSON formatting and systemd-journald integration