How to Manage Logfiles with Logrotate

Logrotate is a system utility that manages the automatic rotation and compression of log files. If log files were not rotated, compressed, and periodically pruned, they would eventually consume all available disk space on a system. In this article, we will explore the default Logrotate configuration, then configure log rotation for a fictional custom application.

Ubuntu

22.04

How To Manage Logfiles with Logrotate on Ubuntu 22.04

Learn How To Manage Logfiles with Logrotate on Ubuntu 22.04
20.04

How To Manage Logfiles with Logrotate on Ubuntu 20.04

Learn How To Manage Logfiles with Logrotate on Ubuntu 20.04
16.04

How To Manage Logfiles with Logrotate on Ubuntu 16.04

Learn How To Manage Logfiles with Logrotate on Ubuntu 16.04

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.