System log full? Clear without restart


abra8c

Recommended Posts

7 minutes ago, trurl said:

You might be able to delete old logs (syslog.1, syslog.2, ...) in /var/log. Doubt you can delete the current syslog.

I had to do this a few weeks back when my logs filled up and didn't want to reboot.  If I remember right, I think I was able to delete the current syslog as well.

 

9 minutes ago, trurl said:

Why?

Why? In my case, not entirely sure but it was related to the webgui server and some issues with it - probably because I left a browser window open on a computer for too long. I also had to nuke the web server and restart it.

 

In hind sight, I probably should have just moved the logs off onto the array in case I needed to troubleshoot something.

 

Anyway, I find this to be a good tip in case you don't want to or can't reboot. ymmv

Link to comment
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.