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.

cpanellogd, logrotation questions

Discussion in 'General Discussion' started by dwinans, Jan 20, 2010.

  1. dwinans

    dwinans Member
    PartnerNOC

    Joined:
    Jan 23, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    1. How often does cpanellogd rotate out log files? From what I gather it sounds like once a month which isn't real efficient.

    2. There are 2 settings within WHM regarding log rotation that I see.

    Service Configuration - Apache Configuration --> Log Rotation
    Rotates out logs in /usr/local/apache/logs

    Service Configuration --> cPanel Log Rotation Configuration
    Rotates out log files in /usr/local/cpanel/logs

    I see no settings relating to rotating out logs in /usr/local/apache/domlogs

    Do either of these settings affect the logs in /usr/local/apache/domlogs?

    If they do not affect rotation in that directory, is there a way to setup log rotation on that directory?

    I do recognize there are settings under "Tweak Settings" to delete logs after stats runs, and also to not keep them at the end of the month.

    The reason I have these questions is that space is quickly filling up in our /usr partition and we need to find a way to conserve space. The majority of space is being used by /usr/local/apache/domlogs. So we are trying to come up with a rotation strategy. If we can do it via cpanlelogd then that's great, if not then I'm guessing we need to set this up via logrotate.

    The best solution would be to compress and rotate the log files, that way we have log history if we need to review it.
     
Loading...

Share This Page