Show journal logs for a single service
show logs of a service | why does nginx not start | journalctl for one service | find mariadb error message | journalctl | systemd | servicejournalctl -u nginx -n 200 --no-pagerFilters the journal to one unit and prints the last 200 lines without a pager. This is usually the fastest way to the cause when a service fails to start or crashes. Using -f instead of -n 200 shows new messages live.
Note: -u can be given multiple times, for example -u nginx -u apache2, to see how both services interact.
Also searched as
- show logs of a service
- why does nginx not start
- journalctl for one service
- find mariadb error message