Ubuntu Server Syslog Goes To Gigabytes

Ubuntu Server Syslog Goes To Gigabytes

My little experience with the ubuntu server today, I found out the server hdd space runs out quickly. I try to monitor with all the network tools I read in the google, but found nothing.

Then finally find out that the cause of it is syslog the log size. It reaches 3,5Gb. So big for the log lines isn’t it?

I don’t know how to empty it, the logrotate command does squeeze it to compressed archive but not change the syslog size. Until I found the command in here.

truncate -s 0 /var/log/syslog

That makes the syslog empty. But until an hour, it doesn’t filled again with line. I don’t what’s wrong, so I monitor it again.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.