Linux - How to monitor log files logwatch, Logwatch installation and montoring log files
How to monitor log files logwatch
How to install logfiles in linux?How to monitor log files in linux?
To install logwatch, download the source from below location.
http://sourceforge.net/projects/sentrytools/
Install logwatch in Debian Linux
apt-get install logwatch
Install logwatch in Fedora Linux
yum install logwatch
Install logwatch in RedHat Enterprise Linux
up2date logwatch
To customize logwatch go to /usr/share/doc/logwatch-*/ directory and read the file HOW TO Customize LogWatch
Or Open logwatch.conf file:
vi /etc/logwatch/conf/logwatch.confOR
vi /usr/share/logwatch/default.conf/logwatch.confRead man page of logwatch for more information
You can use the below command to view system messages in real time as they are written to the system log file
tail -f /var/log/messages tail -f /path/to/log/file tail -f /var/log/httpd/access_log
How to Configure logwatch with mailing option?
Logwatch will send mail to email ID specified in logwatch.conf
# The default time range for the report... # The current choices are All, Today, Yesterday Range = yesterday
The topic on Linux - How to monitor log files logwatch is posted by - Math
Hope you have enjoyed, Linux - How to monitor log files logwatchThanks for your time