Log rotation in plesk 8.x

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

2007-08-08_115759you can 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!

Please follow and like us:
About shk

shk is a DevOps engineer with more than 12 years of experience in different organizations. He enthusiastic about learning new technologies and shares his knowledge through his blogs.

Comment Policy:

Your words are your own, so be nice and helpful if you can. Please, only use your real name, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.

Tell us what you're thinking...

All comments are moderated.

* Denotes required field.



Previous Post:
Next Post: