Question 320
A Linux administrator faces this requirement: An incident responder needs journal records at warning severity or higher but not informational noise. Which specific action is the best direct solution?
Explanation
Correct Answer
Use journalctl -p warning (or an equivalent explicit priority range). The mechanism is: The -p option filters by syslog/journal severity rather than by service, date, or free text.
Incorrect Answers
Set SystemMaxUse in the active journald.conf storage configuration. That operation is designed for the different case: A host must limit the space that persistent systemd journal files can occupy. It does not perform the specific action required here: Use journalctl -p warning (or an equivalent explicit priority range).
Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits. That operation is designed for the different case: A systemd journal fills its configured disk quota and old archived journal data should be pruned. It does not perform the specific action required here: Use journalctl -p warning (or an equivalent explicit priority range).
Run journalctl --since 'yesterday 18:00' with appropriate local-time interpretation. That operation is designed for the different case: An admin must inspect log activity only since yesterday at 18:00. It does not perform the specific action required here: Use journalctl -p warning (or an equivalent explicit priority range).






LPI Level 1 (102-500) Practice Tests