Reduce syslog redundancy in linux-stemcells


Dewald, Manuel
 

Hi all,

we observed that in the current configuration BOSH-deployed VMs consume a lot of disk space by writing redundant log files. As an example, currently syslog writes all output to /var/log/syslog and /var/log/messages. This seems to be due to the compatibility to CentOS and Ubuntu default behaviour.

To reduce the redundancy in the logs of bosh-deployed VMs, we want to change the rsyslog config file[1]. We propose the following changes:
- As default log file use /var/log/syslog on Ubuntu and /var/log/messages on CentOS
- Don't write debug, lpr.log, mail.*, user.log and news.* files.

Please review our PR[2] and let us know if you have any objections, which might be the case if you rely on the current behaviour.

[1] https://github.com/beyhan/bosh-linux-stemcell-builder/blob/master/stemcell_builder/stages/rsyslog_config/assets/rsyslog_50-default.conf
[2] https://github.com/cloudfoundry/bosh-linux-stemcell-builder/pull/75

Kind regards,
Kai & Manuel

Join cf-bosh@lists.cloudfoundry.org to automatically receive all group messages.