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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Delete cPanel Log files

Discussion in 'General Discussion' started by easyswiss, Apr 12, 2017.

  1. easyswiss

    easyswiss Active Member

    Joined:
    Apr 19, 2011
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    56
    I must delete this large (1GB+) logfiles:

    Results with:
    How to?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,765
    Likes Received:
    313
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. easyswiss

    easyswiss Active Member

    Joined:
    Apr 19, 2011
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    56
    Does not work:

     
  4. easyswiss

    easyswiss Active Member

    Joined:
    Apr 19, 2011
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    56
    Ok, found a way.
    spamd looks to be not added per default for log rotation.
     
  5. balitas

    balitas Registered

    Joined:
    May 26, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    hi please tell me which way you use to delete spamd_error_log
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  7. AnthonyFrancis

    PartnerNOC

    Joined:
    Sep 7, 2013
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Denver Colorado
    cPanel Access Level:
    DataCenter Provider
    If you want to empty it quickly do this:
    Code:
    chattr -a spamd_error_log
    > spamd_error_log
    You can change it back with +a if you want.
     
Loading...

Share This Page