O'Reilly logo

Ubuntu Server Essentials by Abdelmonam Kouka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Troubleshooting tips

In this section, you will find advanced tips related to the troubleshooting of tasks. They are a must for most Ubuntu Server administrators.

Customizing log rotation on Ubuntu Server

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required