Was this article helpful?

Have more questions?

error_log occupied too much space and was not rotated

Applicable to:

Symptoms

Log rotation for a domain is setup to rotate logs by size, but
error_log
file occupies too much space and not being rotated upon reaching the configured size.

Cause

Log rotation is performed by the Daily Maintenance script. This task will rotate a log file in case if its size is equal or larger than configured. So if the size of log file exceeds a particular limit, but the Daily Maintenance is not started yet then log file will not be rotated (until Daily Maintenance has started).