CertGrid CertGrid
Hands-on Lab·Red Hat Certified System Administrator

systemd Journal and System Logs

One objective and the most useful troubleshooting skill in the blueprint. The journal is structured rather than textual, which is why it can be filtered by unit, priority, boot and arbitrary field - and why `grep` on `/var/log` is the slow way to do this.

Operating Running Systems Guide 28 of 67 Beginner

Written against the versions above. The journal is a binary, indexed store; `journalctl` is the only way to read it. `rsyslog` still writes plain-text files alongside it - `/var/log/secure`, `/var/log/messages` - so both exist on a RHEL system and neither replaces the other.

Every command on this page runs on RHCSA-A01.
Server NameIP AddressOSRolesCPURAMHDD
RHCSA-A01192.168.0.31RHEL 10.0 (Coughlan)Practice node (graded) - spare /dev/sda2 Core4 GB50 GB + 15 GB

Before you start

  1. Filtering, which is the whole point

  2. It is structured, not text

  3. The text files that still exist

Official sources