ubuntu linux system - big size of directory /var/log/journal/

1) determine the size of the directory:

1.1) with command journalctl:
journalctl --disk-usage
>> for example: Archived and active journals take up 4.0G in the file system.

1.2) with command du (disk usage)
du -s -h /var/log/journal/
>>> for example: 4,1G /var/log/journal/

2) check settings in configfile: /etc/systemd/journald.conf
>> set max use size, for example to 1G:

3) restart service >> this will cleanup to specified size / or age
service systemd-journald restart

computer2know :: thank you for your visit :: have a nice day :: © 2024