How to: Remove/Clear journal log files (To free some storage) for Debian/Ubuntu etc.

Last Updated on

Journal logs are stored in “/var/log/journal” folder

journal logs
journal logs

Check journal log file size

We can open that folder to check manually or use “ncdu” command, we can also use dedicate journalctl command

sudo journalctl --disk-usage
sudo journalctl --disk-usage
sudo journalctl –disk-usage

Change maximum journal log folder size

1 Open “/etc/systemd/journald.conf” file

2 Change or add following line


To a size you prefer


Force log rotation

sudo systemctl kill --kill-who=main --signal=SIGUSR2 systemd-journald.service
sudo systemctl restart systemd-journald.service

Leave a Reply

Your email address will not be published. Required fields are marked *