/var/log/journal big

written by Admin


Posted on 2023-06-13


Problem

Systemd log repository is huge, how can I free up some space without any damage?

Solution

Run (as root):
# journalctl --rotate
# journalctl --vacuum-time=2d

Then set automatic garbage collection in /etc/systemd/journald.conf
[Journal]
#Storage=auto
#Compress=yes
#Seal=yes
..
SystemMaxUse=100M

...and reload configuration:
# systemctl restart systemd-journald

Feedback


Comments

Leave a Comment:

Search

Welcome

We need collaboration and a real boost from our community: write us an email for every trick you find!

This website is a sysadmin swiss-knife for every-day Windows, Linux and Mac administration and troubleshooting

Our database grows if YOU send us your tips and trick as soon as you find them every day!