journalctl

Read systemd service logs and system journal

journalctl shows all logs managed by systemd. journalctl -u nginx shows nginx logs. journalctl --since '1 hour ago' limits time range. journalctl -f follows live (like tail -f). Use -k for kernel-only messages.

Example

$ journalctl -u nginx --since '10 min ago'
Jan 15 14:23:45 server nginx[1234]: 2024/01/15 14:23:45 [notice] signal process started
Tip: Type it yourself in the terminal below - reading is not the same as doing.