Codebase list logwatch / scrub-obsolete/main logwatch.8
scrub-obsolete/main

Tree @scrub-obsolete/main (Download .tar.gz)

logwatch.8 @scrub-obsolete/mainraw · history · blame

.\" Process this file with
.\" groff -man -Tascii foo.1
.\"
.TH LOGWATCH 8 "May 2012" Linux "User Manuals"
.SH NAME
logwatch \- system log analyzer and reporter
.SH SYNOPSIS
.B logwatch [--detail
.I level
.B ] [--logfile
.I log-file-group
.B ] [--service
.I service-name
.B ] [--mailto
.I address
.B ] [--archives] [--range
.I range
.B ] [--debug
.I level
.B ] [--filename
.I file-name
.B ] [--logdir
.I directory
.B ] [--hostlimit
.I hosts
.B ] [--hostname
.I hostname
.B ] [--html_wrap
.I number of characters
.B ] [--hostformat 
.I host based options
.B ] [--output
.I output-type
.B ] [--format
.I report format
.B ] [--subject
.I email subject
.B ] [--encode
.I encoding to use
.B ] [--numeric] [--version] [--help|--usage]
.SH DESCRIPTION
.B Logwatch
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.
.SH OPTIONS
.IP "\fB--detail\fR level"
This is the detail level of the report.
.I level
can be a positive integer, or high, med, low, which correspond to the
integers 10, 5, and 0, respectively.
.IP "\fB--logfile\fR log-file-group"
This will force Logwatch to process only the set of logfiles
defined by
.I log-file-group
(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.
.IP "\fB--service\fR service-name"
This will force Logwatch to process only the service specified in
.I service-name
(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.
A useful
.I service-name
is
.I All
which will process all services (and logfile-groups) for which you have
filters installed.
.IP "\fB--mailto\fR address"
Mail the results to the email address or user specified in
.I address.
.IP "\fB--range\fR range"
You can specify a date-range to process. Common ranges are  
.I Yesterday, Today, All,
and
.I Help.
Additional options are listed when invoked with the
.I Help
parameter.
.IP "\fB--archives\fR"
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.
.IP "\fB--debug\fR level"
For debugging purposes.
.I level
can range from 0 to 100.  This will
.I really
clutter up your output.  You probably don't want to use this.
.IP "\fB--filename\fR file-name"
Save the output to
.I file-name
instead of displaying or mailing it.
.IP "\fB--logdir\fR directory"
Look in
.I directory
for log subdirectories or log files first before looking in the default directories.
.IP "\fB--hostlimit\fR host1,host2"
Limit report to hostname - host1, host2.
.IP "\fB--hostname\fR hostname"
Use
.I hostname
for the reports instead of this system's hostname.  In addition,
if HostLimit is set in the logwatch.conf configuration file (see
\fBMORE INFORMATION\fR, below),
then only logs from this hostname will be processed (where appropriate).
.IP "\fB--html_wrap\fR num-characters"
Number of characters that html output should be wrapped to. Default is 80.
.IP "\fB--hostformat\fR split"
Use
.I split
approach when formatting report for multiple hosts - none [default], split, splitmail.
.IP "\fB--output\fR output-type"
Report using
.I output-type
- stdout [default], mail, file.
.IP "\fB--format\fR format"
Format report using
.I format
- text [default], html.
.IP "\fB--subject\fR email-subject"
Customize the email subject sent by Logwatch.  Option \fB--output\fR
must be set to mail.
.IP "\fB--encode\fR encoding"
Encode report using
.I encoding
- none [default], base64.
.IP "\fB--numeric\fR"
Inhibits additional name lookups, displaying IP addresses numerically.
.IP "\fB--usage\fR"
Displays usage information
.IP "\fB--help\fR"
same as \-\-usage.
.SH FILES
.IP /usr/share/logwatch/
.RS
This directory contains all the perl executables and
configuration files shipped with the logwatch distribution.
.RE
.IP /etc/logwatch
.RS
This directory contains local configuration files that override
the default configuration.  See \fBMORE INFORMATION\fR below for more
information.
.RE
.SH EXAMPLES
.B logwatch --service ftpd-xferlog --range all --detail high --archives
.RS
This will print out all FTP transfers that are stored in all current and archived
xferlogs.
.RE
.B logwatch --service pam_pwdb --range yesterday --detail high 
.RS
This will print out login information for the previous day...
.RE
.SH MORE INFORMATION
The directory /usr/share/doc/logwatch-* contains several files with additional
documentation:
.RE
.I HOWTO-Customize-LogWatch
.RS 
Documents the directory structure of Logwatch configuration and executable
files, and describes how to customize Logwatch by overriding these default
files.
.RE
.I LICENSE
.RS
Describes the License under which Logwatch is distributed.  Additional
clauses may be specified in individual files.
.RE
.I README
.RS
Describes how to install, where to find it, mailing lists, and
other useful information.
.SH AUTHOR
.RE
Kirk Bauer <kirk@kaybee.org>
.RE
http://sourceforge.net/projects/logwatch