Glossary

Log rotation

What is log rotation?

In short

Log rotation renames, compresses and eventually deletes old log files on a schedule, so logs do not grow until the disk is full. On Linux it is usually done by logrotate.

Why it matters

When rotation breaks, often after a config change or a log moved to a new path, one file grows quietly for weeks until the disk fills and the app stops writing.

How to check it on Linux

Dry-run logrotate to see what it would do:

sudo logrotate -d /etc/logrotate.conf

What Opservo does about it

The health score checks that log rotation is running and flags it when it is not, because growing logs are a common cause of full disks. Alert before a disk fills

Log rotation, answered

What is log rotation?+

Log rotation renames, compresses and eventually deletes old log files on a schedule, so logs do not grow until the disk is full. On Linux it is usually done by logrotate.

How do I check log rotation on Linux?+

Dry-run logrotate to see what it would do: sudo logrotate -d /etc/logrotate.conf

How does Opservo handle log rotation?+

The health score checks that log rotation is running and flags it when it is not, because growing logs are a common cause of full disks.

Related terms

Opservo watches all of this on every server and explains problems in plain English. Free for 2 servers.