ubuntu:services:check_logs_of_a_service
Table of Contents
Ubuntu - 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
ubuntu/services/check_logs_of_a_service.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1