reduce syslog logging for less i/o on the RaspberryPi

I wanted to remove some logging to have less disc (sd-card) i/o on my RaspberryPi.

Using the latest Raspbian with rsyslogd, here are a few options for you:

1. cron sessions in auth.log

remove these by replacing the following line in /etc/rsyslog.conf:

by these lines:

 

2. remove CRON completely from syslog

replace in /etc/rsyslog.conf:

by

 

3. set php5-fpm logs from NOTICE (that’s a lot!) to ERROR

look for the following line in /etc/php5/fpm/php-fpm.conf and replace notice by error:

to be continued…!

Leave a Reply

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