voip ~ # journalctl --disk-usage
Archived and active journals take up 4.2G on disk.
voip ~ # du -sh /var/log/journal/
4,3G /var/log/journal/
Let’s leave 500M of logs only:
voip ~ # journalctl --vacuum-size=500M
…
Vacuuming done, freed 3.5G of archived journals on disk.
Check once again:
voip ~ # journalctl --disk-usage
Archived and active journals take up 744.2M on disk.
voip ~ #
voip ~ # du -sh /var/log/journal/
745M /var/log/journal/
Tags: journalctl, logs, systemd