CentOS 7 permanent systemd log

One of the most annoying thing about CentOS 7 (actually, one of the very few annoying thing!) is the default configuration involving systemd journal logs.

The default is indeed to clear the whole log on every boot.

If you’d like to preserve the journal (to being able to see what happened before the system reboot) you just need to edit the file /etc/systemd/journald.conf and in the section [Journal] change the value of the Storage entry from auto to persistent.


[Journal]
Storage=persistent

That will do the trick!

You just need to restart the journald service in order to make the new setting effective:

systemctl restart systemd-journald

Leave a Reply

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

What is 14 + 3 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)