Other than a couple of basic VHOST's, I have default apache and apache logging configuration. Whenever I try to view my apache log files (error.log, access.log) I see that these files keep getting reordered and reorganised regularly, unfortunately I don't understand what the reason or methodology of this is.
From what I have read this log file manipulation is performed by a utility called "logrotate".
with a description from the manpage
logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large.
I have read the following resources:
The above resources give a good technical explanation of how you would configure logrotate, but I'm failing to get a common sense explanation of what the point of log rotate is, and therefore some insight into how it works. I can see that it performs compression on some files, the benefit of that is obvious.
I understand that logrotate is a generic utility that processes log files for many services - and therefore its function changes per each config - but, in the context of apache 2.4 on Ubuntu 14.04 what does "logrotate" do?