I am running
apache 2.4.9 on
ubuntu 14.04. Apache rotates log files and archives them, so I end up with something like:
The problem with this is that it is hard to analyze them (I have to unarchive, analyze and remove them). Moreover, I do not really want these logs to lay around on the server (I would rather copy them to my local machine and remove them from server). Right now I am doing this manually, which is not so efficient.
So is there a way to configure apache to automatically send me an email with a log file right after apache rotated it? If this is not really a good idea or there is something better, I am opened to any suggestions