"daily" access logs start at 6am?
So cPanel offers "daily" logs in /home1/me/access-logs that allegedly are for one days worth of logs. In my system, somewhat oddly, those files start every day at 6am, which for me is noon GMT. Duh? Is there a simple way to make them start at local midnight like normal clocks do?
-
The following post explains when the access logs are rotated. Unfortunately, you would need to own your server to be able to use the WHM configuration that is mentioned. Hello :) The Apache domain access logs are not rotated at midnight every night. Instead, they are updated every 24 hours. You can change the statistics processing schedule so that certain hours are blacked out if you prefer cpanellogd to run at select times: "WHM Home " Server Configuration " Statistics Software Configuration" Note that statistics applications such as Awstats or Webalizer will automatically parse the logs correctly into the correct dates/times so there is no need to have them run at midnight. In addition, statistics for each domain name are processed individually. Thus, you are not going to have them updated exactly at a certain time. Thank you.
0 -
Thank you. I understand that these logs are rotated every 24 hours. Just trying to understand how to determine WHEN they are rotated. I believe you're saying that can be managed in WHM. I also understand that these logs are not necessarily processed in real time. That is, a given access may appear in these logs an hour or so later. I'd like to build a file that contains a weeks worth of accesses. I now understand how to do that with cron, doing a "cat access-log/domain >>" every 24 hours. Just would be good to know what time to set that cron job to happen. Kinda looks like just before 6am right now. 0 -
Hello, The "cpanellogd" process runs in the background and determines how many hours it's been since the last stats run. Additionally, the time the logs are processed depends on how your hosting provider has configured the "Statistics Schedule" in "WHM Home " Server Configuration " Statistics Software Configuration". For instance, they could have certain hours blacked out, meaning that statistics only process at certain hours of the day, or "Prevent cpanellogd (Log Processing) and cpbackup (Backups) from running at same time." could be enabled and statistics may run later than normal if backups are taking longer to complete. Thank you. 0 -
That's useful to know. Thank you. 0
Please sign in to leave a comment.
Comments
4 comments