Difference between revisions of "Journal Control"
Jump to navigation
Jump to search
(→Use) |
|||
| Line 4: | Line 4: | ||
== Use == | == Use == | ||
<code>journalctl -f</code> follow latest messages</br> | <code>journalctl -f</code> follow latest messages</br> | ||
<code>journalctl -t sshd</code> show messages of a particular service</br> | <code>journalctl -t sshd</code> show messages of a particular service</br> | ||
Revision as of 08:40, 21 August 2023
journalctl
May be used to query the contents of the systemd(1) journal as written by systemd-journald.service(8).
Use
journalctl -f follow latest messages
journalctl -t sshd show messages of a particular service
Useful Flags
-p <priority> show messages with $priority and above only
-b <priority> show messages since last boot only