Best way to implement additional log processing?
I've been looking at the apache logging, rotation, and stats setup on our cpanel server, and I need to find a way to do some additional processing to our domain logs before they are rotated or removed.
I can try and run a script on cron just before stats are run, but there will be a short window where data may be lost. Is there a documented or recommended way to add a step in the process? And should I be watching /usr/local/apache/domlogs, or ~/logs? Domlogs appear to be more current, but are they reset when the ~/logs files are created?
Thanks!
-
Hello :) The Apache domlogs are what's utilized for statistics processing. I believe the statistics hookable events will be useful to you: Stat Functions - Hookable Events Thank you. 0 -
Thank you! That looks very promising. 0
Please sign in to leave a comment.
Comments
2 comments