Logwatch is a very useful server reporting tool which we use alot at Indra Design. We regularly receive queries from clients asking how to install and configure Logwatch on their servers.
The instructions below are specifically for CentOs 6.2 but can be adapted for other version of Linux as well.
- Get the Logwatch program using wget:
- Then install it:
That’s it! Easy to install. Now we will configure Logwatch to send a report email.
- Open up /usr/share/logwatch/default.conf/logwatch.conf and change the “
Output = stdout” to “
Output = mail“
- Change the “
MailTo = root” to “
MailTo = firstname.lastname@example.org“
That’s it, you can check other parameters in the logwatch.conf file, but the default values should be OK for most people.