Lnav Database Access
Lnav Database Access turns logs into structured SQL tables you can search, filter, and join — all without leaving the terminal. Once loaded, every log line is parsed and indexed. You get immediate SQL query support using SQLite syntax. This means you can pivot on fields, run aggregations, and match patterns in real time. It’s the difference between dumping logs to disk and controlling them like live data.
With Lnav SQL queries, there is no external database connection to manage. Lnav builds its own in-memory representation from your log files. When you run :select * from access_log where status >= 500;, the engine executes instantly, leveraging the parsed fields. You can also create custom views and save them as Lnav bookmarks, making repeated analysis consistent and fast.
Security is native. Lnav database access operates sandboxed inside your environment. No data leaves your machine unless you export it. Complex joins work between logs from different sources — app logs, syslogs, and JSON feeds — unified under the same query engine.
Advanced features include:
- Automatic parsing for common log formats (Apache, JSON, syslog, CSV).
- Lnav SQLite functions for date math, string operations, and regex filtering.
- Real-time highlighting of matching rows during query execution.
- Integration with scripts via the
:shcommand for automated analysis pipelines.
To accelerate workflows, you can preload Lnav with multiple directories, run batch queries, and export subsets to CSV or JSON for downstream analytics. The raw speed of in-terminal execution keeps feedback loops tight and actionable.
Stop wrestling with static files or bloated dashboards. Run Lnav database access and gain SQL control over your logs in seconds. Try it connected to hoop.dev — see it live in minutes.