What are good practices when setting up logs with journald? Group of answer choices Have…
- User
What are good practices when setting up logs with journald? Group of answer choices Have the /var directory on a separate partition or filesystem Create the /var/log/journal directory or change the journald config to Storage=persistent Enable Forward Secure Sealing (FSS) to protect messages submitted to the journal All of the above
Assistant
Answer:
All of the aboveExplanation:
Each of the listed practices is recommended for configuring logs with
journald:-
Have the
/vardirectory on a separate partition or filesystem- Logs can grow large over time. Isolating
/var(where persistent journal logs are stored) on its own partition prevents log data from consuming space on the root filesystem (/), avoiding potential system instability.
- Logs can grow large over time. Isolating
-
Create the
/var/log/journaldirectory or change the journald config toStorage=persistent- By default,
journaldstores logs in volatile memory (/run/log/journal). To persist logs across reboots, you must either:- Create the
/var/log/journaldirectory or - Set
Storage=persistentin/etc/systemd/journald.conf.
- Create the
- This ensures logs are saved to disk permanently.
- By default,
-
Enable Forward Secure Sealing (FSS) to protect messages submitted to the journal
- FSS provides cryptographic signing of logs to ensure integrity and prevent tampering. This is particularly useful in security-sensitive environments where audit trails must be protected.
Additional Notes:
- FSS requires configuration (e.g.,
Seal=yesinjournald.confand generating sealing keys). It is optional but recommended for high-security systems. - Persistent logging (
Storage=persistent) and disk isolation (/varon a separate partition) are foundational best practices for reliability and scalability.
By combining these practices, you ensure robust log management with resilience, persistence, and security.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.