On Ubuntu, /var/log/journal
grows too large. I am told I can safely delete /var/log/journal/*
but I'd rather have a quota set.
How do I do this?
Edit /etc/systemd/journald.conf:
SystemMaxUse=
.SystemMaxFileSize=
.journalctl --vacuum
to enforce new limits.For example:
[Journal] # Total limit for all journals: SystemMaxUse=4G # Limit for individual files before rotation: SystemMaxFileSize=1G
--rotate
might do the job, as limits are generally applied during log rotation.
Commented
Jun 30, 2019 at 20:12