Bits and thoughts

#!/bin/bash is not rude

Have a watch on your logs

Written by ⓘⓓⓔⓝⓣⓛⓤⓓ - -

Want to know what happened on your server ? Logwatch is for you.It sums up and aggregates some information from your log files and you can have it sent by email to you.

Context and installation

The server I'm running is a Debian Wheezy.
apt-get install logwatch
I wanted it to send an email to a specific local user and I wanted the email to contains as much detail as possible. I wrote to etc/logwatch/conf/override.conf
# cat >/etc/logwatch/conf/override.conf <<EOF
logwatch: MailTo = myuser@lebegue.org
logwatch: Output = mail
logwatch: Detail = high
EOF

The result is an email sent myuser@lebegue.org with every important details.


Comments are closed.