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?


Copy the file you want to change from 

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-2018, 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.