A Linux administrator is troubleshooting a server where system logs are lost after every reboot. The administrator has determined that the systemd journal is using volatile, in-memory storage. To ensure logs are saved to disk and persist across reboots, which configuration change should be made?
In /etc/logrotate.conf, add a new rule for /run/log/journal.
In /etc/systemd/journald.conf, set RateLimitBurst=10000.
In /etc/rsyslog.conf, enable the imjournal module.
In /etc/systemd/journald.conf, set Storage=persistent.
The correct action is to edit /etc/systemd/journald.conf and set Storage=persistent. By default, many systemd-based systems are configured with Storage=auto, which means logs are stored in volatile memory at /run/log/journal if the /var/log/journal directory does not exist. This volatile storage is cleared upon reboot. Setting the Storage option to persistent explicitly instructs systemd-journald to store logs on disk in the /var/log/journal directory, creating it if necessary, which ensures the logs survive a system restart.
Configuring /etc/rsyslog.conf and its modules, such as imjournal, relates to the rsyslog service, which can pull logs from the journal but does not control the journal's primary storage method.
The RateLimitBurst option in journald.conf controls the number of log messages accepted within a specific time interval to prevent log flooding; it does not affect storage persistence.
logrotate is a separate utility for managing the rotation of text-based log files, not for configuring the storage behavior of the systemd journal itself.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the systemd journal in Linux?
Open an interactive chat with Bash
What is the difference between `Storage=auto` and `Storage=persistent` in journald?
Open an interactive chat with Bash
How does the `RateLimitBurst` option in journald.conf work?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access