Community Forums
Connect with us on LinkedIn
Results 1 to 7 of 7
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    378
    cPanel/Enkompass Access Level

    Root Administrator

    Default Option for cPanel Log Rotation based on Dates, not File Sizes

    Frankly this does need further attention as the default or optional built in methods for handling Apache log rotations are extremely limited still.

    I would love to see optional log rotation settings (via WHM) so as to allow us to specify daily rotate if [non-empty/>_mb] and keep _ [days/weeks/months]

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by DomineauX View Post
    Frankly this does need further attention as the default or optional built in methods for handling Apache log rotations are extremely limited still.

    I would love to see optional log rotation settings (via WHM) so as to allow us to specify daily rotate if [non-empty/>_mb] and keep _ [days/weeks/months]
    Commonly, log rotation is done to ease the disk consumption since archived logs can be more easily located and then moved off to another machine if they need to be kept for an extended period of time.

    I am wondering about your particular scenario, why it would be more beneficial to rotate on the basis of the time difference of the first log entry to the last log entry rather than the size of the file? Knowing what this functionality may be used for can help us anticipate specific conditions that may need to be accounted for when implementing such functionality.

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    378
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by cPanelDavidG View Post
    Commonly, log rotation is done to ease the disk consumption since archived logs can be more easily located and then moved off to another machine if they need to be kept for an extended period of time.

    I am wondering about your particular scenario, why it would be more beneficial to rotate on the basis of the time difference of the first log entry to the last log entry rather than the size of the file? Knowing what this functionality may be used for can help us anticipate specific conditions that may need to be accounted for when implementing such functionality.
    Personally I am just fond of the daily log rotate scenario as it makes it easier to know which log to check if someone tells me that on May 30th something happened so I check access_log.3.gz (as would be the case at this moment).

    While I can certainly see the point that rotating by size is useful, I think it would be great to have both configurable options without having to do it via logrotate config scripts as we currently do.

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Friendly Moderator Note

    I have split this discussion off into its own feature request so it doesn't get lost in the previous discussion regarding more customizations on log file sizes, which is implemented in 11.25.1.

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    378
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Understood and thanks for doing so David

  6. #6
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,891
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb Important cPanel/WHM Version Number Designation Change

    Please Note: Important cPanel/WHM Version Number Designation Change

    As of July 28, 2010 the cPanel/WHM version number designations have been officially changed.

    Version 11.25.1 is now designated 11.28 and version 11.25.2 is now designated 11.30.

    These new changes were explained in some detail recently at the July 2010 - Quarterly Road map - Webinar direct from cPanel's PodCast Studio in Houston, Texas with speakers David Grega and Mario Rodriguez.

    An official press release about these changes is forthcoming and can be accessed at this link as soon as it's made available to the Forum Team:
    Important cPanel/WHM Version Number Designation Change (To be updated)

    This post serves to update users who are subscribed to threads (where this message is posted) looking forward to upcoming enhancements in future versions of cPanel.

  7. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Option for cPanel Log Rotation based on Dates, not File Sizes

    I spoke with the OP and we're going to pursue this by means of moving towards syslogd as discussed in http://forums.cpanel.net/f145/syslog...-a-241591.html so I'm going to close this thread and archive it.

Similar Threads & Tags
Similar threads

  1. Replies: 10
    Last Post: 12-02-2010, 07:41 AM
  2. Change log rotation to < 300MB file size?
    By volcanohost in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 07-30-2010, 02:11 PM
  3. Domain log file rotation
    By hostsale in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-05-2010, 07:17 PM
  4. Howcome there is no option to place suexec_log into log rotation?
    By gotroot in forum cPanel and WHM Discussions
    Replies: 18
    Last Post: 07-03-2009, 02:24 AM
  5. log file rotation?
    By ameen in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-08-2004, 02:41 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube