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.

HTTP log rotation! urgent!

Discussion in 'General Discussion' started by jacob, Jan 26, 2004.

  1. jacob

    jacob Member

    Joined:
    Jan 30, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hey guys,

    I've been reading around on the subject of log rotation, but it's really biting my ass. Of the many servers we have, one of them is a nonprofit server that has several "well to do" sites. One of their logs is now over 2 GIGS. (/usr/local/apache/domlogs/domainname.com)

    I need to rotate logs ASAP.

    http://forums.cpanel.net/showthread.php?s=&threadid=722&highlight=rotate+logs
    was not much help. Any help or tips would be greatly appreciated! Thanks!
     
  2. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    There is an option in "tweak settings" in WHM to delete log files after stats have run ( webalizer, awstats, etc. ). You might want to try that out.
     
  3. SageBrian

    SageBrian Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    415
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    NY/CT (US)
    cPanel Access Level:
    Root Administrator
    If you already have it set to delete, and it's growing too quickly in a day, then it might help to have the stats run more than once a day. Set it to run 3 times a day... that way it processes smaller files, keeping server load more even.
     
  4. abagla

    abagla Member

    Joined:
    Jan 21, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Kolkata, India
    How to run it multiople times in a day
     
  5. RobertOnTheAir

    RobertOnTheAir Active Member

    Joined:
    Aug 2, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    In your WHM Tweek Options, set the logs rotate time to .5 for twice a day .33 for 3 times a day, or .25 for 4 times a day.
     
  6. mike_r

    mike_r Well-Known Member

    Joined:
    Nov 26, 2002
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    I was just wondering what version of cPanel/WHM you're using?? Because on 10.0.0 I can't seem to find that option ..
     
  7. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Stats and Logs

    Number of days between processing log files and bandwidth usage (default 1, decimal values are ok):
     
Loading...

Share This Page