How to View System Logs With journalctl in Linux
journalctl reads and displays logs collected by systemd's journal, covering both system events and service output.
Published October 1, 2026
journalctl reads the systemd journal, the central log of services and the kernel. Filter by unit, time, priority and follow live.
How it works
The journal is binary and indexed, so filtering is fast. -u filters by service, -f follows, --since and --until limit time, -p filters by priority.
Persistent storage may need /var/log/journal to exist.
Try it
journalctl -u nginx --since "1 hour ago" -n 5
Nov 12 10:01 nginx[812]: 200 GET /
Nov 12 10:02 nginx[812]: 500 POST /api
Practical examples
Follow a service
journalctl -u nginx -fErrors since boot
journalctl -p err -bTime range
journalctl --since "2026-11-12 09:00" --until "2026-11-12 10:00"Disk usage and cleanup
journalctl --disk-usage
sudo journalctl --vacuum-size=200MCommon mistakes
- Not using sudo and seeing partial logs.
- Forgetting -b to limit to the current boot.
- Letting the journal fill the disk.
Key takeaways
- journalctl -u service -f.
- Filter by time and priority.
- Vacuum old logs.
FAQ
Where are classic logs?
/var/log; some distros keep both.
Kernel messages?
journalctl -k or dmesg.