Install Logwatch

yum install logwatch

or

SSH into server and login as root.

wget http://downloads.sourceforge.net/project/logwatch/logwatch-7.4.0/logwatch-7.4.0-1.noarch.rpm
rpm -Uvh logwatch-7.4.0-1.noarch.rpm

Edit file:

nano /usr/share/logwatch/default.conf/logwatch.conf

Update the following:

Output = mail
MailTo = root

Note: Set the e-mail address to an offsite account in case you get hacked.

Hit CTRL+X press y and then enter to save the file.

Author: Christopher Smith

I managed websites.

Leave a Reply

Your email address will not be published. Required fields are marked *