Dave's Brain

Browse - Computer Tips - How can I change what logwatch reports?

Date: 2015jul15
OS: Linux
Product: logwatch

Q.  How can I change what logwatch reports?

A.

Copy the file you want to change from 

/usr/share/logwatch/default.conf/services/THE_SERVICE.conf
to
/etc/logwatch/conf/services/THE_SERVICE.conf
and change the copy. This will be preserved over logwatch updates. For example if you want to change the size of the mailbox it reports
cp /usr/share/logwatch/default.conf/services/sendmail-largeboxes.conf /etc/logwatch/conf/services
Then set:
$sendmail_largeboxes_size = 400MB
No need to restart anything.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.