Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    119

    Default Log Rotation?

    I have log rotation enabled in WHM (cPanel 11.25.0-R46156 - WHM 11.25.0 - X 3.9) yet when I go to look at the archived logs the directory that the rotation settings screen suggest they should be in (/usr/local/cpanel/logs/archive/) or (/usr/local/apache/logs/archive/ in the case of apache) doesn't exist.

    Has cpanel been "rotating" the logs into a non existent dir and thus losing them or are they likely to have ended up somewhere else.

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    What are the sizes of your various cPanel/Apache logs? The default setting for rotation to be triggered is 300MB, and given that cPanel and Apache main logs do not usually grow as quickly as their domlog counterparts, it's quite likely that they haven't reached this archive threshold yet.
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

  3. #3
    Member
    Join Date
    Nov 2003
    Posts
    119

    Default

    Quote Originally Posted by garrettp View Post
    What are the sizes of your various cPanel/Apache logs? The default setting for rotation to be triggered is 300MB, and given that cPanel and Apache main logs do not usually grow as quickly as their domlog counterparts, it's quite likely that they haven't reached this archive threshold yet.
    The perticullar one I was interested in was only 300kb and only had entries from this afternoon leading me to believe it had recently rotated out.

    It seems one of the sites CMS had been hacked and someone had uploaded a script to attempt to DOS people with a UDP flood.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    If you are concerned with domlogs, you may want to make sure you are retaining log data after stats generation. There are two settings that could be affecting the retention of your domlogs, both are in the Tweak Settings menu in the WHM:

    Delete each domain's access logs after stats run
    Keep log files at the end of the month (default is off as you can run out of disk space quickly)
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

  5. #5
    Member
    Join Date
    Nov 2003
    Posts
    119

    Default

    It was set to delete after a stats run DOH!

Similar Threads & Tags
Similar threads

  1. Log Rotation?
    By dragon2611 in forum Security
    Replies: 0
    Last Post: 06-04-2010, 02:40 PM
  2. Log Rotation
    By zigzam in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-02-2009, 07:06 AM
  3. Log rotation
    By bmcclure in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-18-2003, 09:53 AM
  4. Log Rotation
    By sketchified in forum cPanel and WHM Discussions
    Replies: 43
    Last Post: 12-10-2002, 09:02 AM
  5. Log Rotation?
    By Curious Too in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-02-2002, 12:01 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube