This article refers to Logwatch on Ubuntu 14.04 LTS.
Logwatch needs a mail transfer agent. Typically we use Exim4 in send-only mode.
To install Logwatch, run
sudo apt-get update then install Logwatch with:
Move config files - don’t edit the originals:
/etc/logwatch/confdirectory is first searched for files with the same name and relative location as the
/usr/share/logwatch/default.confdirectory. Variables declared in these files override the defaults.
If using Apache server:
Then add *combined.log files to the list
Set email address, logs to be checked/ignored etc.
This may need to be manualy created, if Logwatch throws an error:
…then run logwatch as sudo.
Set up a Custom Cronjob for Logwatch
/etc/cron.daily/00logwatch to include the admin email:
The run time is tied in to the time of the daily cron job. To change, remove
/etc/cron.daily/00logwatch and add a new cronjob. Not tested:
- Definitive Guide on Customising Logwatch
- Even More Definitive, though focused on Gentoo
comments powered by Disqus