Author Topic: [Tutorial] Logwatch on Centos Web Panel  (Read 5365 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
[Tutorial] Logwatch on Centos Web Panel
« on: September 05, 2018, 05:37:57 PM »
Logwatch is a utility that helps you track your system's log files, also helps you to monitor them on a schedule and email you a daily summary
To install Logwatch on CentOS / RHEL, run the following:

#yum install -y logwatch
Confing file
vi /usr/share/logwatch/default.conf/logwatch.conf


The man page describes the full list of options.

You must pay attention and  change are:

# Location of your log files
LogDir = /var/log
 
# You can override the default temp directory (/tmp) here
TmpDir = /var/cache/logwatch
 
# Change this to your email address
MailTo = root
Subject = "Logwatch for `hostname`"
 
# Change this to something meaningful, like your name
MailFrom = Me
 
# The range of report Possible values are yesterday/today/all
Range = yesterday
 
# Detail level of report Possible values are: Low, Medium and High.t
Detail = Low
 
# If you don't wish to receive the daily reports, uncomment this line
# DailyRepoty = No
 
# Services to monitor
services = all


THE CRONTAB NOT LOCATED TO classic   crontab -l
Stored under
/etc/cron.daily/0logwatch