is a customizable, pluggable log-monitoring system. It will go
through your logs for a given period of time and make a report in the areas
that you wish with the detail that you wish. Logwatch is being used for
Linux and many types of UNIX.
This is the detail level of the report.
can be a positive integer, or high, med, low, which correspond to the
integers 10, 5, and 0, repectively.
This will force Logwatch to process only the set of logfiles
(i.e. messages, xferlog, ...). Logwatch will therefore process
all services that use those logfiles. This option can be specified
more than once to specify multiple logfile-groups.
This will force Logwatch to process only the service specified in
(i.e. login, pam, identd, ...). Logwatch will therefore also process
any log-file-groups necessary to process these services. This option
can be specified more than once to specify multiple services to process.
which will process all services (and logfile-groups) for which you have
Mail the results to the email address or user specified in
You can specify a date-range to process. Common ranges are
Yesterday, Today, All,
Additional options are listed when invoked with the
Each log-file-group has basic logfiles (i.e. /var/log/messages) as
well as archives (i.e. /var/log/messages.? or /var/log/messages.?.gz).
When used with "--range all", this option will make Logwatch search
through the archives in addition to the regular logfiles. For other
values of --range, Logwatch will search the appropriate archived logs.
For debugging purposes.
can range from 0 to 100. This will
clutter up your output. You probably don't want to use this.
Save the output to
instead of displaying or mailing it.
for log subdirectories or log files instead of the default directory.
for the reports instead of this system's hostname. In addition,
if HostLimit is set in the logwatch.conf configuration file (see
MORE INFORMATION, below),
then only logs from this hostname will be processed (where appropriate).
Inhibits additional name lookups, displaying IP addresses numerically.
Displays usage information
same as --usage.
This directory contains all the perl executables and
configuration files shipped with the logwatch distribution.
This directory contains local configuration files that override
the default configuration. See MORE INFORMATION below for more
logwatch --service ftpd-xferlog --range all --detail high --output=stdout --archives
This will print out all FTP transfers that are stored in all current and archived
logwatch --service pam_pwdb --range yesterday --detail high --output=stdout
This will print out login information for the previous day...
The directory /usr/share/doc/logwatch-* contains several files with additional
Documents the directory structure of Logwatch configuration and executable
files, and describes how to customize Logwatch by overriding these default
Describes the License under which Logwatch is distributed. Additional
clauses may be specified in individual files.
Describes how to install, where to find it, mailing lists, and
other useful information.