Difference between revisions of "Journal Control"

From 6bit.ch wiki
Jump to navigation Jump to search
(Created page with "= journalctl = May be used to query the contents of the systemd(1) journal as written by systemd-journald.service(8).</br> == Use == <code>journalctl -xe</code> show last 1000 messages in a pager</br> <code>journalctl -f</code> follow latest messages</br> <code>journalctl -t sshd</code> show messages of a particular service</br> </br> == Useful Flags == <code>-p <priority></code> show messages with $priority and above only <code>-b <priority></code> show messages sinc...")
 
Line 10: Line 10:


== Useful Flags ==
== Useful Flags ==
<code>-p <priority></code> show messages with $priority and above only
<code>-p <priority></code> show messages with $priority and above only</br>
<code>-b <priority></code> show messages since last boot only
<code>-b <priority></code> show messages since last boot only</br>

Revision as of 15:15, 24 February 2023

journalctl

May be used to query the contents of the systemd(1) journal as written by systemd-journald.service(8).

Use

journalctl -xe show last 1000 messages in a pager
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