Journald: Difference between revisions

From DWIKI
mNo edit summary
mNo edit summary
Line 2: Line 2:
*[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]
*[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]


=FAQ=
=HOWTO=
==tail a log==
== Fix journal 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]]
[[Category:Systemd]]

Revision as of 10:20, 23 November 2022

Links

HOWTO

Fix journal 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