5.1.1.4 Ensure journald is configured to write logfiles to persistent disk

Information

Data from journald may be stored in volatile memory or persisted locally on the server. Logs in memory will be lost upon a system reboot. By persisting logs to local disk on the server they are protected from loss due to a reboot.

Writing log data to disk will provide the ability to forensically reconstruct events which may have impacted the operations or security of a system even after a system crash or reboot.

Solution

Edit the /etc/systemd/journald.conf file or a file ending inconf in /etc/systemd/journald.conf.d/ and add the following line:

Storage=persistent

Restart the service:

# systemctl restart systemd-journald

See Also

https://workbench.cisecurity.org/benchmarks/13007

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-2, 800-53|AU-7, 800-53|AU-12, CSCv7|6.2, CSCv7|6.3

Plugin: Unix

Control ID: 34dbcde673ecd1c2b1b537f95033bf104fbe2fb14423abe70af9e53d03ef0dbe