5.1.1.3 Ensure journald is configured to send logs to rsyslog

Information

Data from systemd-journald may be stored in volatile memory or persisted locally on the server. Utilities exist to accept remote export of systemd-journald logs, however, use of the rsyslog service provides a consistent means of log collection and export.

-IF- rsyslog is the preferred method for capturing logs, all logs of the system should be sent to it for further processing.

Note: This recommendation only applies if rsyslog is the chosen method for client side logging. Do not apply this recommendation if systemd-journald is used.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

Create or edit the file /etc/systemd/journald.conf and add or edit the following line:

ForwardToSyslog=yes

Reload the systemd-journald service:

# systemctl systemctl reload-or-try-restart systemd-journald.service

See Also

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