Red Hat Certified System Administrator RHCSA · Free Practice Question Medium

Question 35

How can you configure the systemd journal on a Red Hat Enterprise Linux 9 system to enable persistent logging?

Show model answer

To enable persistent logging in the systemd journal on RHEL 9, create a directory for journal storage with the command sudo mkdir -p /var/log/journal. Then, restart the systemd-journald service using sudo systemctl restart systemd-journald. This configuration ensures that logs are preserved across reboots. By default, RHEL 9 does not store logs persistently, so this manual setup is necessary to retain them.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need