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
My server load seems to be really spiking and many times the server goes down at the same time each night (Around midnight). I have about 20 cpanel accounts hosted on it and have tried everything I know to try to find what is causing the issue.
Recently I tried to disable domlogs by editing /etc/httpd/conf/httpd.conf and comment out the two CustomLog field for a domain because the logs it were generating were quite large and fast. But after a few days the domlogs is working again and the CustomLog revert back to its previous state. How do I make the comment out last permanently in httpd.conf? Thanks in advance.