Step 0 :
Install
logwatch.sudo apt-get update
sudo apt-get upgrade
sudo apt-get install logwatchStep 1 :
Make changes to the
logwatch configure file in order to tell her to send you a email report.sudo nano /usr/share/logwatch/default.conf/logwatch.confChange the settings of the following lines.
Output = mail
Format = html
MailTo = samiux@gmail.comStep 2 :
You should also change the setting at the daily cron job.
sudo nano /etc/cron.daily/00logwatchMake the entry like this.
/usr/sbin/logwatch --mailto samiux@gmail.comStep 3 :
Make
logwatch to read Hiawatha log files.sudo nano /usr/share/logwatch/default.conf/logfiles/http.confAdd the following lines on the appropriate sections.
LogFile = hiawatha/*access.log
LogFile = hiawatha/*access.log.1
LogFile = hiawatha/*error.log
LogFile = hiawatha/*error.log.1
LogFile = hiawatha/*system.log
LogFile = hiawatha/*system.log.1
LogFile = hiawatha/*garbage.log
LogFile = hiawatha/*garbage.log.1
LogFile = hiawatha/*php-fcgi.log
LogFile = hiawatha/*php-fcgi.log.1
Archive = hiawatha/*access.log.*.gz
Archive = hiawatha/*error.log.*.gz
Archive = hiawatha/*system.log.*.gz
Archive = hiawatha/*garbage.log.*.gz
Archive = hiawatha/*php-fcgi.log.*.gzSee also (Hiawatha 6.17.1 installation) :
Samiux's Blog
or
Almost Secure and Perfect Ubuntu Server
That's all. See you!
No comments:
Post a Comment