Linux Performance

Read Linux logs with journalctl (systemd)

Find the actual error line fast on systemd Linux — filters that beat scrolling through megabytes of noise.

14 min read Beginner Updated 9 Jun 2026

Step-by-step guide

Work through each section in order. Stop when your issue is resolved — you do not need every step for every situation.

What you will achieve

Find relevant error lines in systemd journals without drowning in unrelated log noise.

1) Basic journalctl usage

journalctl -e
journalctl -f
journalctl -b
  • -e — jump to end of logs.
  • -f — follow live (like tail -f).
  • -b — current boot only.

2) Filter by systemd unit

journalctl -u nginx.service -b
journalctl -u ssh.service --since "1 hour ago"

Replace unit name with your service (apache2, mariadb, docker, etc.).

3) Time windows and priority

journalctl --since "2026-06-09 09:00" --until "2026-06-09 10:00"
journalctl -p err -b

-p err shows error level and worse (emerg, alert, crit, err).

4) Kernel messages

journalctl -k -b

Useful for driver, disk, and hardware issues at boot.

5) Export for tickets

journalctl -u myapp.service -b --no-pager > ~/myapp-journal.txt

Redact secrets before sending logs to third parties.

Verify

You can reproduce an issue, run the failing service, and locate the exact error line with unit + time filters in under a minute.

journalctl linux logs systemd