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.

How can I get the domlogs from reaching 2gb?

Discussion in 'General Discussion' started by BianchiDude, Jul 29, 2005.

  1. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    16
    -rw-r----- 1 root lone 2.0G May 15 15:17 lone.net
    -rw-r--r-- 1 root root 426M Jul 29 17:51 lone.net-bytes_log
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Select the option in WHM Tweak Settings to rotate the logs after each stats run.
     
  3. allpar

    allpar Active Member

    Joined:
    Sep 16, 2005
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Excuse me for bringing up an old thread, but I do not see anything for rotating after a stats run, just a setting for deleting.

    Boy, I wish there was an option for rotating logs every few days. I need the raw files but I don't have rooom for them to stay unzipped.

    PS> I voted for that bug report but only two other people did so I don't know how far it'll go! My log gets to 2 GB in one week and it's not the world's largest site. 500,000 visitors/month.

    Update: on my request, Hostrocket added this file, named apache, to /etc/logrotate.d :

    /usr/local/apache/logs/*_log /var/log/securehost*.net /var/log/*.net /var/log/*$
    daily
    create
    compress
    missingok
    rotate 14
    sharedscripts
    copytruncate
    postrotate
    /bin/kill -HUP `cat /usr/local/apache/logs/httpd.pid`
    endscript
    }
     
    #3 allpar, Sep 18, 2005
    Last edited: Sep 20, 2005
Loading...

Share This Page