The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

When are the log files cleared from the server

Discussion in 'General Discussion' started by myweb, May 31, 2006.

  1. myweb

    myweb Well-Known Member

    Joined:
    Jun 18, 2002
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tokyo
    I would like to know exactly when the log files are cleared from the server at the end of month? For example, the log files were removed on the 30th of May, but I was expecting that to happen on 31st?
     
  2. myweb

    myweb Well-Known Member

    Joined:
    Jun 18, 2002
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tokyo
    Anyone? I need to know exacly what time so that I can make backups of the log files before they get cleared.
     
  3. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    To which log files are you referring exactly?
     
  4. myweb

    myweb Well-Known Member

    Joined:
    Jun 18, 2002
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tokyo
    Thanks for the reply.

    I am referring to the files under /usr/local/apache/domlogs
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    They're cleared whenever the cpanellogd/logrunner completes which is controlled by the settings in WHM > Tweak Settings. There is no set time as it depends on the size of the logs and the available resources on the server (and if you've created a time window in the Statistics Software Configuration in WHM).
     
  6. myweb

    myweb Well-Known Member

    Joined:
    Jun 18, 2002
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tokyo
    Thanks for the reply, but I am a little confused.

    I have the option "Delete each domain's access logs after stats run" unchecked, so doesn't this mean that the domlog files are kept until it is cleared at the end of the month unless the "Keep log files at the end of the month (default is off as you can run out of disk space quickly)" option is enabled?
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Yes, absolutely - that's why I said it was controlled by those settings in WHM > Tweak Settings
     
  8. myweb

    myweb Well-Known Member

    Joined:
    Jun 18, 2002
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tokyo
    So.. as I wrote on my first post I would like to know exactly when the log files are cleared from the server at the end of month? Because I've seen the log files removed on the 30th of May, but I was expecting that to happen on 31st? And idea why this happens?
     
Loading...

Share This Page