Journald: Difference between revisions

From DWIKI
(Created page with "=FAQ= ==tail a log== journalctl -u sshguard -f")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
=FAQ=
=Links=
==tail a log==
*[https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs How To Use Journalctl to View and Manipulate Systemd Logs]
 
=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
  journalctl -u sshguard -f
[[Category:Systemd]]

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