abra8c Posted September 10, 2020 Share Posted September 10, 2020 (edited) My system log runs full and I know definitely why. Is there a way to clear it without a restart? Edited September 10, 2020 by abra8c 1 Quote Link to comment
trurl Posted September 10, 2020 Share Posted September 10, 2020 Just now, abra8c said: I know definitely why. Why? 1 minute ago, abra8c said: Is there a way to clear it without a restart? You might be able to delete old logs (syslog.1, syslog.2, ...) in /var/log. Doubt you can delete the current syslog. 1 Quote Link to comment
abra8c Posted September 10, 2020 Author Share Posted September 10, 2020 Thanks that worked. It fills up because of the mover logging. I enabled it to troubleshoot something. Quote Link to comment
civic95man Posted September 10, 2020 Share Posted September 10, 2020 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 Quote Link to comment
helvete Posted June 27, 2023 Share Posted June 27, 2023 Might be useful for someone in the future but you can run this via ssh or terminal in gui: truncate -s 0 /var/log/syslog this will effectively empty the syslog 1 2 1 Quote Link to comment
trurl Posted June 27, 2023 Share Posted June 27, 2023 3 hours ago, helvete said: this will effectively empty the syslog but note that other files could be taking up log space in /var/log and its subfolders Quote Link to comment
Recommended Posts
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.