Systemd's Journal Size

Systemd’s Journal Size

journald.conf

1
2
3
4
5
6
7
8
9
$ grep -v "#" /etc/systemd/journald.conf
[Journal]
Compress=yes
SystemMaxUse=512M
SystemMaxFileSize=64M
RuntimeMaxUse=2048M
RuntimeMaxFileSize=64M

$ systemctl restart systemd-journald

Show total disk usage of all journal files

1
2
3
4
5
$ du -sh /var/log/journal
529M /var/log/journal

$ journalctl --disk-usage
Archived and active journals take up 528.0M on disk.

Reduce disk usage manually

1
2
3
4
5
6
# journalctl --vacuum-files=63
# journalctl --vacuum-time=7d
# journalctl --vacuum-size=512M

Vacuuming done, freed 104.0M of archived journals on disk.
journal verify

Verify journal file consistency

1
# journalctl --verify