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): Strg+R

Befehl Beschreibung
Filtern
filter-in <regex> Only display log lines that match a regex.
filter-out <regex> Do not display log lines that match a regex.
disable-filter <regex> Disable the given filter.
enable-filter <regex> Enable the given filter.
delete-filter <regex> Delete the filter.
set-min-log-level <level> Only display log lines with the given log level or higher.
hide-lines-before <abs-time|rel-time> Hide lines before the given time.
hide-lines-after <abs-time|rel-time> 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 <date|relative-time> Change the timestamps for a log file.
unix-time <secs-or-date> 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.