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!

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:
    168
    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:
    44,323
    Likes Received:
    1,851
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice