Journald: Difference between revisions

From DWIKI
mNo edit summary
 
Line 3: Line 3:


=HOWTO=
=HOWTO=
== Fix journal size ==
== Limit journal log size ==


  journalctl --vacuum-time=10d
  journalctl --vacuum-time=10d
Line 16: Line 16:
and then
and then
  systemctl restart systemd-journald.service
  systemctl restart systemd-journald.service


==tail a journal log==
==tail a journal log==

Latest revision as of 10:25, 26 April 2023

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