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!

cpanellogd, logrotation questions

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

  1. dwinans

    dwinans Member PartnerNOC

    Jan 23, 2009
    Likes Received:
    Trophy Points:
    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.

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