I need to maintain atleast 3 months domlogs backup in my cpanel server. How can I do it in front end and back end. Any help very must appreciated.
on 08/06/2012 – Made popular on 08/06/2012
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?
I want to replace apache with nginx and I want to use logs from nginx on same way like from apache for every user, to process stats, to see last visitors from cpanel, BW graphs etc...
In nginx config file for every virtual host I set log path to:
access_log /usr/local/apache/domlogs/domain.com main buffer=32k;
access_log /usr/local/apache/domlogs/domain.com-bytes_log bytes_log buffe