Cleaning Up Systemd Journal Logs

“Bad boys, whatcha want. Watcha want, whatcha gonna do when the root is full?” Actually, what are you gonna do when the journald taking up lots of space? For example, during the operating system upgrade on my desktop, the free space on / is not sufficient. Error Summary ------------- Disk Requirements: At least 5643MB more space needed on the / filesystem. So, I check how much space the systemd-journald log was consuming:...

October 10, 2020 · 1 min · 142 words · Kenno

How to Enable Persistent Logging for Systemd Journal

On RHEL 7/8, CentOS 7/8 and even Ubuntu (??), by default the journal log data is stored only in memory (/run/log/journal/ directory). There are 2 ways to retain the journal log messages. The first one is to set the variable Storage to persistent in the /etc/systemd/journald.conf. [Journal] Storage=persistent Then restart the systemd-journald service. Another solution is simpler and it looks like it’s the recommended way of achieving this. All we have to do is to create a directory, /var/log/journal (with correct ownership and permission), and journald will automatically store the log messages there....

August 29, 2020 · 2 min · 418 words · kenno