User Tools

Site Tools


services:check_logs_of_a_service

Services - Check logs of a service

Using systemd

In systemd logs are stored in an internal binary format (not as text files) so you need to use journalctl command to access them:

sudo journalctl -u service_name
sudo journalctl -u service_name -f

Using Upstart

In upstart logs are normal text files in the /var/log/upstart directory, so you can process them as usual:

cat /var/log/upstart/foo.log
tail -f /var/log/upstart/foo.log
services/check_logs_of_a_service.txt · Last modified: 2020/07/23 12:08 by 192.99.15.29

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki