25 September 2023
/var/log/journal growing in size

/var/log/journal growing in size

01 September, 2023

journal is systemd's logging service. It is a utility for querying and displaying logs from journald. The logs for this service are stored in /var/log/journal/, which can accumulate quickly. If you have a system that you need to clean up quickly, getting rid of old journals is one way. There are 2 ways to do it:

By limiting the size of the journal:

journalctl --vacuum-size=200M

Or going by the number of days:

journalctl --vacuum-time=5d

Under normal circumstances, you should not have to touch these directories, as they rotate and space is freed on it's own.

ALT Technical

© ALT Technical. All rights reserved.