File: logwatch.8

package info (click to toggle)
logwatch 7.5.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,300 kB
  • sloc: perl: 7,281; sh: 250; makefile: 38
file content (184 lines) | stat: -rw-r--r-- 5,498 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
.\" 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