In this section, you will find advanced tips related to the troubleshooting of tasks. They are a must for most Ubuntu Server administrators.
The best starting point for troubleshooting a problem is reading the related service log. Logs are not saved infinitely; they are kept on the system and they follow a specific policy. After a span of time, the oldest logs are dropped. Thus, we keep only some of the latest log files. This is called log rotation; it is done on Ubuntu Server on two levels. The generic policy is configured in the /etc/logrotate.conf
file, and a specific policy is configured for some services in a specific file under the /etc/logrotate.d/
directory.
This specific file, named /etc/logrotate.d/*
is not commented, but the /etc/logrotate.conf
generic file is very expressive and well commented and has a syntax that is the same as that of the specific file. There is also good documentation about this on the man
page,...