Overview of lnav architecture
masterlnav is a terminal-based logfile navigator composed of several core components:
- Log File Parser: Detects and parses log formats.
- Text UI: A terminal interface built on top of
notcursesfor viewing logs. - SQLite Integrations: Provides programmatic access to messages and internal state via SQLite virtual-tables.
- Command-Line Interface (CLI): For interacting with lnav.
- Log Commands: Specialized commands for operating on log data.
The central data structure is the combined log message index, which is populated as new messages are read. The Text UI displays a subset of this index, while SQLite allows for complex querying.