mirror of
https://github.com/tstack/lnav
synced 2024-11-01 21:40:34 +00:00
Updated description for usage with journald.
This commit is contained in:
parent
265f80c60d
commit
714077c087
13
README.md
13
README.md
@ -83,10 +83,23 @@ output format to include the year, otherwise `lnav` gets confused:
|
||||
|
||||
$ journalctl -o short-iso | lnav
|
||||
|
||||
It is also possible to use `journalctl`'s json output format and `lnav`
|
||||
will make us of additional fields such as PRIORITY and _SYSTEMD_UNIT:
|
||||
|
||||
$ journalctl -o json | lnav
|
||||
|
||||
If using systemd v236 or newer, the output fields can be limited to
|
||||
the ones actually recognized by `lnav` for increased efficiency:
|
||||
|
||||
$ journalctl -o json --output-fields=MESSAGE,PRIORITY,_PID,SYSLOG_IDENTIFIER,_SYSTEMD_UNIT | lnav
|
||||
|
||||
If your system has been running for a long time, for increased
|
||||
efficiency you may want to limit the number of log lines fed into
|
||||
`lnav`, e.g. via `journalctl`'s `-n` or `--since=...` options.
|
||||
|
||||
In case of a persistent journal, you may want to limit the number
|
||||
of log lines fed into `lnav` via `journalctl`'s `-b` option.
|
||||
|
||||
|
||||
## Screenshot
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user