Journald: Difference between revisions

From DWIKI
Tony (talk | contribs)
Tag: wikieditor
Tony (talk | contribs)
Tag: wikieditor
 
Line 20: Line 20:
  journalctl -u sshguard -f
  journalctl -u sshguard -f


==View journal log of one unit==
journalctl -xe -u my.service


[[Category:Systemd]]
[[Category:Systemd]]

Latest revision as of 09:08, 5 June 2025

Links

HOWTO

Limit journal log size

journalctl --vacuum-time=10d

or

journalctl --vacuum-size=1G

Journal settings

/etc/systemd/journald.conf

SystemMaxUse=1G

and then

systemctl restart systemd-journald.service

tail a journal log

journalctl -u sshguard -f

View journal log of one unit

journalctl -xe -u my.service