Journald cleanup

From snippet wiki
Jump to navigation Jump to search

If disk space vanishes it might be the amount of systemd logging.

To limit it on a time based value, edit /etc/systemd/journald.conf with

MaxRetentionSec=7day

and reload the service via

systemctl restart systemd-journald

For immediate reduction you can also run this once:

journalctl --vacuum-time=7d