How to install logwatch on Ubuntu

by Ruchira on March 12, 2013

Logwatch is a great tool which emails you reports of your linux server’s log data reports. It analyses the information such as failed log in attempts, software updates,disk usage data etc.  Logwatch will email you complete report of the processed logs every day or whenever you want it to. Install logwatch on Ubuntu is easy, just follow these steps

SSH in to your server and run

sudo apt-get install logwatch

this will install the logwatch package. If it asks you to set postfix configuration while running the installation, choose “Internet site” option and enter email address there.

Now we need to edit the logwatch configuration file to make it send out the emails to you

sudo nano /usr/share/logwatch/default.conf/logwatch.conf

This will open up the nano text editor and you need to edit the Output,Format and MailTo options like below

Output = mail
Format = html
MailTo =




Save it by pressing Ctrl+O and exit by using Ctrl+X

That’s it. Now you will receive daily email’s of your logs :)

I'm Ruchira Sahan and all posts on this blog are completely my thoughts and writings. I love DIY and Technology. So feel free to contact me for anything about this blog and don't forget to add a comment if this blog helped you! Thanks
View all posts by Ruchira

Last 5 posts by Ruchira

Previous post:

Next post: