How to see logging for a specific unit or service
This article has last been updated at .
How to see logging for a specific unit or service?
Use the journalctl command and filter the output by selecting a specific systemd unit.
journalctl --unit=UNITThe journalctl command can show the events from its journal by --unit= followed by the service or its unit name. This way events will be filtered, making it much easier to troubleshoot a particular service.
Example
journalctl -u nginx.service