- These instructions are intended specifically for installing the Logwatch on Ubuntu 12.04 LTS.
- I’ll be working from a Liquid Web Core Managed Ubuntu 12.04 LTS server, and I’ll be logged in as root.
Step 1: Install LogwatchFirst, you’ll follow a simple best practice: ensuring the list of available packages is up to date before installing anything new.
apt-get -y updateThen let’s install Logwatch and any required packages:
apt-get -y install logwatchDuring the install process you may be prompted to configure Postfix: Go over the options, and then select OK. Then, you’ll have to select a mail option: In this case we are going to configure Postfix to send mail locally only; we’ll select the Local only option, and then select OK to continue. Next we’ll configure the mail name: Typically the mail name will be the hostname of the server on which you’re installing Logwatch; select Ok to finish the installation.
Step 2: Configuration File LocationsLocal Configuration Options can be added in: /etc/logwatch/conf/logwatch.conf Default Configuration Options can be found in: /usr/share/logwatch/default.conf/logwatch.conf It is best practice to leave the Default Configuration as is, and edit the Local Configuration option, which is under /etc as listed above.