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!

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:
    166
    -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,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Select the option in WHM Tweak Settings to rotate the logs after each stats run.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. allpar

    allpar Well-Known Member

    Joined:
    Sep 16, 2005
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    156
    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

  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