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.

Is it safe to clear /var/log/messages?

Discussion in 'General Discussion' started by jols, Aug 18, 2015.

  1. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Hi,
    The messages file in /var/log/messages is regularly well over 1gb and I need ot keep this smaller. because I am running out of space in /var.

    Is it safe to just go like so?

    > /var/log/messages

    To empty that one down now and then?

    Thanks much.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The data in /var/log/messages is not required unless you need to troubleshoot an issue with general system activity. You can empty it, or add a custom LogRotate entry for it so it's rotated on a regular basis.

    Thank you.
     
Loading...

Share This Page