The log file never lies. But it can be tampered with, edited, and rewritten—unless you make it immutable. In Lnav, immutability transforms logs from changeable text into fixed records you can trust. This is not a style choice. It’s a core principle for secure debugging, compliance, and production forensic analysis.
Immutability in Lnav means once data is captured, it cannot be altered. This protects against hidden edits that sabotage audits or cover tracks. By enabling immutable logs, Lnav ensures the original byte sequence stays intact. Every search, filter, and view comes from source data you know is genuine.
Mutable logs introduce risk: a clever attacker with write access can erase or reshape history. Immutable logs shut that door. In Lnav, immutability pairs with indexed search and syntax-aware display, letting you explore events without fear that evidence shifted behind the curtain. You can merge multiple files, run SQL queries in-memory, and still maintain a chain of trust back to the raw log.