|
Packit |
57988d |
What is Logwatch?
|
|
Packit |
57988d |
|
|
Packit |
57988d |
Logwatch is a customizable, pluggable log-monitoring system. It will go
|
|
Packit |
57988d |
through your logs for a given period of time and make a report in the areas
|
|
Packit |
57988d |
that you wish with the detail that you wish.
|
|
Packit |
57988d |
|
|
Packit |
57988d |
Perl 5.8 or newer is recommended to run Logwatch. [But it will work with 5.6.1+]
|
|
Packit |
57988d |
|
|
Packit |
57988d |
------------------------------------------------------------------
|
|
Packit |
57988d |
|
|
Packit |
57988d |
How do I install it?
|
|
Packit |
57988d |
|
|
Packit |
57988d |
An rpm file is available. The following describes how to install if you
|
|
Packit |
57988d |
prefer to install from the source tar file:
|
|
Packit |
57988d |
|
|
Packit |
57988d |
The simplest setup is to follow the default configurations.
|
|
Packit |
57988d |
Simply make a directory (/usr/share/logwatch) and copy the
|
|
Packit |
57988d |
scripts, conf, and lib directories into that directory.
|
|
Packit |
57988d |
You will also need to make the /etc/logwatch dir if you want to make
|
|
Packit |
57988d |
configuration changes without having to modify the default config files.
|
|
Packit |
57988d |
|
|
Packit |
57988d |
The steps to follow to get the default setup going are something like this.
|
|
Packit |
57988d |
[However we recommend using the install_logwatch.sh script when possible.]
|
|
Packit |
57988d |
|
|
Packit |
57988d |
Untar logwatch.
|
|
Packit |
57988d |
cd logwatch-x.x
|
|
Packit |
57988d |
mkdir /etc/logwatch
|
|
Packit |
57988d |
mkdir /etc/logwatch/scripts
|
|
Packit |
57988d |
mkdir /etc/logwatch/conf
|
|
Packit |
57988d |
mkdir /etc/logwatch/conf/logfiles
|
|
Packit |
57988d |
mkdir /etc/logwatch/conf/services
|
|
Packit |
57988d |
touch /etc/logwatch/conf/logwatch.conf
|
|
Packit |
57988d |
touch /etc/logwatch/conf/ignore.conf
|
|
Packit |
57988d |
touch /etc/logwatch/conf/override.conf
|
|
Packit |
57988d |
|
|
Packit |
57988d |
mkdir /usr/share/logwatch
|
|
Packit |
57988d |
mkdir /usr/share/logwatch/dist.conf
|
|
Packit |
57988d |
mkdir /usr/share/logwatch/dist.conf/logfiles
|
|
Packit |
57988d |
mkdir /usr/share/logwatch/dist.conf/services
|
|
Packit |
57988d |
|
|
Packit |
57988d |
mv conf/ /usr/share/logwatch/default.conf
|
|
Packit |
57988d |
mv scripts/ /usr/share/logwatch/scripts
|
|
Packit |
57988d |
mv lib /usr/share/logwatch/lib
|
|
Packit |
57988d |
|
|
Packit |
57988d |
mkdir /var/cache/logwatch
|
|
Packit |
57988d |
ln -s /usr/share/logwatch/scripts/logwatch.pl /etc/cron.daily/0logwatch
|
|
Packit |
57988d |
ln -s /usr/share/logwatch/scripts/logwatch.pl /usr/sbin/logwatch
|
|
Packit |
57988d |
|
|
Packit |
57988d |
This is only a suggestion and if you look at the logwatch.pl script and the
|
|
Packit |
57988d |
logwatch.conf file you will see that you can configure the system layout in many
|
|
Packit |
57988d |
different ways.
|
|
Packit |
57988d |
|
|
Packit |
57988d |
See also the file HOWTO-Customize-LogWatch for more information.
|
|
Packit |
57988d |
|
|
Packit |
57988d |
------------------------------------------------------------------
|
|
Packit |
57988d |
|
|
Packit |
57988d |
How do I use it?
|
|
Packit |
57988d |
|
|
Packit |
57988d |
Well, it should pretty much work on its own, sending you an
|
|
Packit |
57988d |
email every night. For more configuration options, run
|
|
Packit |
57988d |
'logwatch --help' or edit /usr/share/logwatch/default.conf/logwatch.conf
|
|
Packit |
57988d |
or /etc/logwatch/logwatch.conf.
|
|
Packit |
57988d |
|
|
Packit |
57988d |
See the file HOWTO-Customize-LogWatch for more information.
|
|
Packit |
57988d |
|
|
Packit |
57988d |
You can also use it from the command line (as documented in the
|
|
Packit |
57988d |
man page).
|
|
Packit |
57988d |
|
|
Packit |
57988d |
------------------------------------------------------------------
|
|
Packit |
57988d |
|
|
Packit |
57988d |
If you want me to add support for a new set of log entries, please
|
|
Packit |
57988d |
email me all the log entries you can from that service from as many
|
|
Packit |
57988d |
machines as possible! Or, better yet, read the HOWTO-Customize-LogWatch
|
|
Packit |
57988d |
and write your own!
|
|
Packit |
57988d |
|
|
Packit |
57988d |
------------------------------------------------------------------
|
|
Packit |
57988d |
|
|
Packit |
57988d |
Mailing lists available!
|
|
Packit |
57988d |
|
|
Packit |
57988d |
Logwatch Development List:
|
|
Packit |
57988d |
For discussion about Logwatch development.
|
|
Packit |
57988d |
To Subscribe: visit https://lists.sourceforge.net/lists/listinfo/logwatch-devel
|
|
Packit |
57988d |
Send Mail To: logwatch-devel@lists.sourceforge.net
|
|
Packit |
57988d |
|
|
Packit |
57988d |
------------------------------------------------------------------
|
|
Packit |
57988d |
|
|
Packit |
57988d |
Please send suggestions, bug reports, and patches to:
|
|
Packit |
57988d |
logwatch-devel@lists.sourceforge.net
|
|
Packit |
57988d |
|
|
Packit |
57988d |
Please ask questions at:
|
|
Packit |
57988d |
logwatch@kaybee.org
|
|
Packit |
57988d |
|
|
Packit |
57988d |
------------------------------------------------------------------
|
|
Packit |
57988d |
|
|
Packit |
57988d |
AUTHOR CONTACT INFORMATION:
|
|
Packit |
57988d |
Kirk Bauer <kirk@kaybee.org>
|
|
Packit |
57988d |
http://www.kaybee.org/kirk/
|
|
Packit |
57988d |
|
|
Packit |
57988d |
Newest releases can be found at:
|
|
Packit |
57988d |
https://sourceforge.net/projects/logwatch/files/
|
|
Packit |
57988d |
|