Skip to main content

Delete cPanel Log files

Comments

6 comments

  • Infopro
    This document link may be of some use to you: How to Clean Unmanaged Log Files - cPanel Knowledge Base - cPanel Documentation
    0
  • easyswiss
    Does not work: [/usr/local/cpanel/logs]# cat /dev/null > spamd_error_log -bash: spamd_error_log: Operation not permitted
    0
  • easyswiss
    Ok, found a way. spamd looks to be not added per default for log rotation.
    0
  • balitas
    Ok, found a way. spamd looks to be not added per default for log rotation.

    hi please tell me which way you use to delete spamd_error_log
    0
  • cPanelMichael
    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.
    0
  • AnthonyFrancis
    If you want to empty it quickly do this:
    chattr -a spamd_error_log > spamd_error_log
    You can change it back with +a if you want.
    0

Please sign in to leave a comment.