End Google Ads 201810 - BS.net 01 -->
1. Login to your server as root, go to root-folder:
كود:
cd /root
----------------------------------------------------
2. Remove existing Logwatch by typing:
كود:
rpm -e logwatch
----------------------------------------------------
3. Download latest stable logwatch (please note, later on you have to check for the latest version from LogWatch website, www2.logwatch.org)
كود:
wget ftp://ftp.kaybee.org/pub/redhat/RPMS/noarch/logwatch-7.3.6-1.noarch.rpm
----------------------------------------------------
4. Install LogWatch with the following command:
كود:
rpm -i logwatch-7.3.6-1.noarch.rpm
----------------------------------------------------
5. Edit the LogWatch configuration file:
كود:
nano -w /usr/share/logwatch/default.conf/logwatch.conf
A) Scroll down to:
كود:
MailTo = root
and replace root with your email address.
B) Scroll down:
كود:
Detail=Low
and replace Low to Medium or High.
Save and exit. by Ctrl+x

----------------------------------------------------
6) You can test your new installation by running the following command:
كود:
/usr/share/logwatch/scripts/logwatch.pl --range today
Others:
كود:
 /usr/share/logwatch/scripts/logwatch.pl --range Yesterday

كود:
 /usr/share/logwatch/scripts/logwatch.pl --range All


Your all done!