easyswiss

Active Member
PartnerNOC
Apr 19, 2011
40
0
56
I must delete this large (1GB+) logfiles:

/usr/local/apache/logs/error_log
/usr/local/apache/logs/access_log
/usr/local/cpanel/logs/spamd_error_log
/usr/local/cpanel/logs/cpwrapd_log
/usr/local/cpanel/logs/cpdavd_session_log
/usr/local/cpanel/logs/error_log
/usr/local/cpanel/logs/access_log
/usr/local/cpanel/logs/tailwatchd_log
Results with:
[email protected] [~]# rm /usr/local/cpanel/logs/spamd_error_log
rm: remove regular file `/usr/local/cpanel/logs/spamd_error_log'? y
rm: cannot remove `/usr/local/cpanel/logs/spamd_error_log': Operation not permitted
[email protected] [~]# whoami
root
How to?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
hi please tell me which way you use to delete spamd_error_log
Hello,

You can select "spamd_error_log" for rotation via "WHM >> Service Configuration >> cPanel Log Rotation Configuration". It will then rotate during the next cpanellogd run according to the value configured for "Log Rotation Size Threshold" in "WHM >> Tweak Settings".

Thank you.