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!

Log rotation

Discussion in 'General Discussion' started by nitaish, Nov 7, 2011.

  1. nitaish

    nitaish Well-Known Member
    PartnerNOC

    Joined:
    Jan 6, 2006
    Messages:
    133
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Mulund, India, India
    In Cpanel server, can we enable log rotation by number of days instead of size of the log files? One of the customers want to retain logs for last 7 days. How can we do it?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You could set entries manually into /etc/logrotate.conf file to set logs to rotate weekly rather than by size. This isn't something configurable in WHM > cPanel Log Rotation Configuration area itself.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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