freifunk-berlin / puppet

Deprecated: New infrastructure development is happening in https://github.com/freifunk-berlin/ansible
Other
2 stars 4 forks source link

monitor: /var/log/daemon.log consumes too much hard drive space #74

Open pmelange opened 4 years ago

pmelange commented 4 years ago

I noticed something was going wrong with monitor. I logged in and the / filesystem was full. After taking a look in /var/log I noticed that daemon.log and daemon.log.1 were taking a total of 6GB of hard drive space.

I quickly deleted the daemon.log.1 and daemon.log.*gz files to free up some space.

Additionally I changed /etc/logrotate.d/rsyslog and moved daemon.log from the "weekly" group to the "daily" group. (I also restarted the logrotate service)

These changes need to be added into puppet, or possilby some other way of reducing the amount of log messages being produced by collectd.