A few of our websites receive high traffic and, as a result, the apache log files grow very large, very quickly. By default, Plesk rotates logs every 2,025,139 KB (2GB). This is way too large for a virtualised server such as ours, which provides 10GB of precious disk space.
To combat this, I set up a regular log rotation in Plesk like so:
- Log in to Plesk.
- Domains > yourdomain.com > Log Manager > Log Rotation
- Choose the log rotation condition.
I choose monthly, but if you’re rapidly running out of disk space you might want to set a shorter time span, or set a low size limit. Don’t forget to enable compression to save on disk space!