journalctlThe whole journal, oldest first, in a pager.
Queries the systemd journal: logs by service, boot, time range, priority and more.
journalctlThe whole journal, oldest first, in a pager.
journalctl -rNewest first.
journalctl -fFollows new entries live, like tail -f.
journalctl -n <n>The last n entries.
Example
journalctl -n 100journalctl -eOpens at the end of the journal.
journalctl -x -eAdds explanatory help text to entries where available.
journalctl -u <unit>Entries from one service.
Example
journalctl -u sshjournalctl -u <unit> --since "<time>"Time-limited; accepts “today”, “yesterday” or exact timestamps.
Example
journalctl -u nginx --since "1 hour ago"journalctl --since "<start>" --until "<end>"A specific window — the core of incident triage.
Example
journalctl --since "2026-11-05 22:00" --until "2026-11-06 02:00"journalctl -bThe current boot only. -b -1 is the previous boot.
journalctl --list-bootsEvery recorded boot with its time range — shows unexpected reboots.
journalctl -p err -bErrors and worse since boot. Levels: emerg, alert, crit, err, warning, notice, info, debug.
journalctl -kKernel messages, like dmesg.
journalctl _UID=<uid>Entries generated by a user.
Example
journalctl _UID=1001journalctl _COMM=<name>Entries from one executable — here, every sudo use.
Example
journalctl _COMM=sudojournalctl -g "<regex>"Greps message text (systemd 237+).
Example
journalctl -u ssh -g "Failed password|Invalid user"journalctl -o json-pretty -n 5Structured output with every field — useful for shipping to a SIEM.
journalctl -o short-isoISO 8601 timestamps.
journalctl --disk-usageHow much space the journal uses.
sudo journalctl --vacuum-time=<age>Deletes entries older than the given age.
Example
sudo journalctl --vacuum-time=30djournalctl --verifyChecks journal files for corruption or tampering when sealing is enabled.
Controls systemd: start, stop, enable and inspect services, timers and the boot target.
Prints the last lines of files and follows them as they grow — the standard way to watch logs.
The Linux Audit daemon: records system calls, file access and command execution according to rules, for compliance and detection.
Watches log files for repeated failures — SSH, web logins, mail — and bans offending IPs with firewall rules.