Install Logwatch OS X

#1 Download the most current version of logwatch.

#2 Copy the tarball up to the server.

#3 Extract the tarball: tar xvf logwatch-7.3.6.tar

#4 cd to the logwatch directory created above.

#5 Install the logwatch package: sudo bash

#6 Accept default install locations.

#7 Copy the conf files and service script files into the new location:

cp -r conf/* /etc/logwatch/conf/

cp  -r scripts/services/* /etc/logwatch/scripts/services

#8 Edit the logwatch.conf file to your desired needs.

Make sure the Print option is set to yes. We then redirect the output via the cronjob.

#9 Install a cronjob to run nightly or however you prefer:

sudo crontab -e

15 2 * * * /usr/share/logwatch/scripts/ | mail -s “Logwatch $HOSTNAME”


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s