HOME
Docker

First you run the following code to get updated system:

sudo apt-get update

Install Logwatch with the following command

sudo apt-get install logwatch

We have to create a directory that Logwatch dosent do by default.

sudo mkdir /var/cache/logwatch

Now, We should copy logwatch.conf to /etc/logwatch/conf/ and that is the file we will configurate.

sudo cp /usr/share/logwatch/default.conf/logwatch.conf /etc/logwatch/conf/

After that open up the logwatch.conf file using following path

sudo vim /etc/logwatch/conf/logwatch.conf

Make the following changes, save it and exit the file.

MailTo = alerts@vlabs.ac.in
Range = today
Detail = high

Type logwatch in your terminal to check if logwtach is running in the background.

You are good to go.

CONTACT ME

Feel free to contact me @

pavankumarpre@gmail.com

+91 701 309 1943