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
|
.TH SYSLOG-SUMMARY 1
.SH NAME
syslog-summary \- summarize the contents of a syslog log file
.SH SYNOPSIS
.B syslog-summary
[-q|--quiet]
.IR "" "[-i " filename "|--ignore=" filename ]
.IR logfile ...
.SH DESCRIPTION
.B syslog-summary
the contents of log files written via the
.BR syslog (3)
service, by displaying each
unique (except for the time) line once, and also the number of times such
a line occurs in the input. The lines are displayed in the order they occur
in the input.
.SH OPTIONS
.TP
.I -q, --quiet
Don't output anything, unless there were unmatched lines.
.TP
.I -i filename, --ignore=filename
Read regular expressions from
.IR filename ,
and ignore lines in the logfiles that match them.
.TP
.I -s filename, --state=filename
Read state information from
.IR filename .
The state contains information about the already reported parts of a log file,
and prevents
.B syslog-summary
from reporting the same things many times.
This is useful when
.B syslog-summary
is run from
.B crontab
every hour.
The file is created, if it doesn't exist already.
.SH AUTHOR
Lars Wirzenius (liw@iki.fi)
|