Journald: Difference between revisions
From DWIKI
mNo edit summary |
m →HOWTO Tag: wikieditor |
||
| (2 intermediate revisions 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 | ||
==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
