Verify persistent storage is enabled journalctl
If /var/log/journal is absent, logs are volatile and lost on reboot. fix: mkdir + systemd-tmpfiles
journalctl --header | grep -iE 'file|state'; ls -d /var/log/journal 2>/dev/null || echo volatile
more journalctl
all 12 commands →
Filter by priority error and above
journalctl -p err -b --no-pager
Match by raw systemd unit field
journalctl _SYSTEMD_UNIT=sshd.service --since today
Combine field filters with OR
journalctl _PID=1 + _COMM=sshd -o short-iso
Regex grep across messages
journalctl --grep='oom|out of memory' --case-sensitive=false -b
Verbose output with all fields
journalctl -u <name> -o verbose -n 1