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.

Removing dom log files weekly?

Discussion in 'General Discussion' started by palav0s, Sep 2, 2011.

  1. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I was searching for a functionality similar to the option:
    Code:
    Number of days between processing log files and bandwidth usage
    that was included in older versions of cPanel.

    Any ideas on how to delete dom log files in a weekly base?

    Thanks
     
  2. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Well a simple cron job will take of it, or you could WHM >> Tweak Settings >> Delete each domain's access logs after stats run
     
  3. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Thanks for your reply Kernow.
    This will work but it will delete the logs every 24 hours (correct if I'm wrong).

    I would like to be deleted in a weekly base.
     
  4. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Check your /etc/logrotate.conf
    There is also an option @ the end of the config file to add new logs to rotate.
     
  5. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    This cannot be done from WHM?
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you want to change the frequency of the processing, you could change them in WHM > Server Configuration > Statistics Software Configuration > Schedule Configuration area. If you want them not to run every 24 hours or less, then change the intervals to be 24 x 7 (168 hours) instead.
     
Loading...

Share This Page