Systemd journal log file setting

From www.ReeltoReel.nl Wiki
Jump to navigation Jump to search

The new openSUSE 13.2 journald (from systemd) is sometimes quickly using up disk space.

There are setting you can tweak in /etc/systemd/journald.conf

[Journal]
Compress=yes
SystemMaxUse=500M
SystemKeepFree=2G

After that, restart the services a few times for the changes to take effect:

systemctl restart systemd-journald.service 
systemctl restart systemd-journal-flush.service 

You should see a reduction in the size of the /var/log/ directory almost immediately.