Question
How do I enable persistent logging for the systemd journal (journalctl)?
Answer
Warning: This configuration file is part of systemd, a core server system. We strongly recommend having a qualified system administrator make the following changes.
- Log in to SSH as the
rootuser via SSH or use the Terminal in WHM. -
Make a backup of the
/etc/systemd/journald.confconfiguration file.# cp -v /etc/systemd/journald.conf{,.$(date +%s)}
-
Open the
/etc/systemd/journald.confconfiguration file. -
Locate the
Strorageline.CONFIG_TEXT: #Storage=auto
-
Remove the
#from the line and set the value topersistent.CONFIG_TEXT: Storage=persistent
- Save the changes and exit the text editor.
-
Run the following command to load the change into
systemd.# systemctl daemon-reexec
Comments
0 comments
Article is closed for comments.