SOLVED cPanel error_log not rotating

DigitalEssence

Well-Known Member
May 21, 2014
48
5
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.
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,945
753
263
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