linux poison RSS
linux poison Email

Monitor System Logs With Logwatch - OpenSuSe

Logwatch is a customizable log analysis system. Logwatch parses through your system's logs for a given period of time and creates a report analyzing areas that you specify, in as much detail as you require. Logwatch is easy to use and will work right out of the package on most systems.

Installation: use "1-click" installer to install logwatch
OpenSuse 11.1 - here
OpenSuSe 11.0 - here



Configuration
The default configuration can be found in /usr/share/logwatch/default.conf/logwatch.conf.  Take a look around the file, but the main thing you might want to update:

    MailTo = root 
   updates to MailTo = user.name@domain.tld

Now go to console and run command: # logwatch to see the detail output, you can also configure the crontab entry for logwatch to get the daily status mail.


1 comments:

Andreas Reiser said...

Nikesh,

I think it would be better to redirect all root mails to your email address, not only the logwatch output. Therefore, you should leave the MailTo in logwatch.conf untouched and change the entry in /etc/aliases instead:

root: your@mailadress.com, \root

Don't forget to run "newaliases" afterwards.

Regards,
Andreas Reiser

Post a Comment

Related Posts with Thumbnails