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!

SOLVED cPanel error_log not rotating

Discussion in 'General Discussion' started by DigitalEssence, Jul 13, 2019.

  1. DigitalEssence

    DigitalEssence Well-Known Member

    Joined:
    May 21, 2014
    Messages:
    47
    Likes Received:
    5
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi,

    my cPanel error log /usr/local/cpanel/logs/error_log isn't rotating and is currently at 125M with entries dating back to January this year (7 months).

    I've also got .gz backups of other logs in the same directory dating back to 2016.

    I have read all the documentation I can find and searched this forum but not found any answers to why this is happening and how to resolve it (sorry if I have missed docs or answers).

    What is the best procedure to resolve this issue?

    Thanks.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,482
    Likes Received:
    508
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @DigitalEssence

    What is currently set for the following option in WHM>>Server Configuration>>Tweak Settings:

    Log rotation size threshold (Minimum: 10)
    Threshold above which cpanellogd will rotate log files.

    What logs (if any) are checked to be rotated at WHM>>Service Configuration>>cPanel Log Rotation Configuration
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. DigitalEssence

    DigitalEssence Well-Known Member

    Joined:
    May 21, 2014
    Messages:
    47
    Likes Received:
    5
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Ah, my Log rotation size threshold is set to the deault 300MB and I see "The archived log files are left in place indefinitely".

    Thanks for clearing that up.
     
    cPanelLauren likes this.
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,482
    Likes Received:
    508
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @DigitalEssence

    I'm happy that's all it was! Let us know if you have any issues with the new configuration.
     
    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