Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

"daily" access logs start at 6am?

Discussion in 'General Discussion' started by Dan Lester, Dec 27, 2017.

  1. Dan Lester

    Dan Lester Active Member

    Joined:
    Dec 7, 2017
    Messages:
    36
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Austin TX
    cPanel Access Level:
    Website Owner
    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?
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    664
    Likes Received:
    219
    Trophy Points:
    43
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    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.

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Dan Lester

    Dan Lester Active Member

    Joined:
    Dec 7, 2017
    Messages:
    36
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Austin TX
    cPanel Access Level:
    Website Owner
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Dan Lester

    Dan Lester Active Member

    Joined:
    Dec 7, 2017
    Messages:
    36
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Austin TX
    cPanel Access Level:
    Website Owner
    That's useful to know. Thank you.
     
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice