Journald: Difference between revisions
From DWIKI
mNo edit summary |
m →HOWTO Tag: wikieditor |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
=HOWTO= | =HOWTO= | ||
== | == 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== | ||
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
