====== Lnav ======
Mit Lnav lassen sich logs besser analysieren, da der Inhalt von lnav aufbereitet wird.
===== Nützliche Befehle =====
Quelle: [[https://lnav.readthedocs.io/en/latest/commands.html]]
Folgender HotKey kann verwendet werden um die aktuelle Session zurückzusetzen (z.B. Filter löschen): Ctrl+R
^ Befehl ^ Beschreibung ^
| **Filtern** | |
| ''filter-in '' | Only display log lines that match a regex. |
| ''filter-out '' | Do not display log lines that match a regex. |
| ''disable-filter '' | Disable the given filter. |
| ''enable-filter '' | Enable the given filter. |
| ''delete-filter '' | Delete the filter. |
| ''set-min-log-level '' | Only display log lines with the given log level or higher. |
| ''hide-lines-before '' | Hide lines before the given time. |
| ''hide-lines-after '' | Hide lines after the given time. |
| ''show-lines-before-and-after'' | Show lines that were hidden by the “hide-lines” commands. |
| **Timestamps** | |
| ''adjust-log-time '' | Change the timestamps for a log file. |
| ''unix-time '' | Convert a unix-timestamp in seconds to a human-readable form or vice-versa. |
| ''current-time'' | Print the current time in human-readable form and as a unix-timestamp. |