Journald: Difference between revisions
From DWIKI
mNo edit summary |
|||
(One intermediate revision by the same user not shown) | |||
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] | ||
= | =HOWTO= | ||
==tail a log== | == 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]] | [[Category:Systemd]] |
Latest revision as of 09: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