Enable persistent storage of log messages

So your system crashed and you have rebooted the machine but no idea what went wrong.

First you have to enable persistent storage of log messages. This way the log messages can be read after a crash.

Enable persistent storage of log files in CENTOS:

mkdir /var/log/journal
systemd-tmpfiles --create --prefix /var/log/journal
systemctl restart systemd-journald
Share on facebook
Share on google
Share on twitter
Share on linkedin
Share on whatsapp