How to setup LOGWATCH?

Step1:

Check Postfix is working properly. If not then install/configure postfix

Step2:

#apt-get install logwatch

#yum install logwatch

Now Test Logwatch:

Execute command on terminal:

#/usr/sbin/logwatch –detail high –output html –range all –hostname servername –filename allreport

#/usr/sbin/logwatch –detail high –output html –range today –hostname servername –mailto xxx@xxx.com

Execute by cront:

0 3 * * * /usr/sbin/logwatch –detail high –output html –range today –hostname servername –mailto xxx@xxx.com.pk

Advertisements