What is logwatch?
It is an awesome monitoring tool. I have it running on one of my servers. Every night I get a status report on the behavior of my server.
Perform daily log analysis every night on a host machine
Can be configured to email reports to admin users
System Administrator Usage
- Easy setup
- Monitor host machines for all access and usage stats
- Alert suspicious usage or access attempts
- Email reports in an organized and easy to read format
sudo apt-get install logwatch
Output = mail Format = html MailTo = <YOUR LOCAL EMAIL>
Email Options (For Gmail, etc.)
Run the Reports Daily
The format for a cron job is:
(minute) (hour) (day of the month) (month) (day of the week) command
A * stands for every.
Here is an example of a crontab entry to run logwatch daily:
0 0 * * * logwatch
Below are just some screenshots of the reports I receive from the tool. The reports are outdated and I no longer use the machine they detail… just in case you were curious.