File: clfsplit.1

package info (click to toggle)
logtools 0.13c
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 220 kB
  • ctags: 109
  • sloc: cpp: 1,098; sh: 116; makefile: 77
file content (61 lines) | stat: -rw-r--r-- 1,499 bytes parent folder | download | duplicates (8)
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
.TH "clfsplit" "1" "0.06" "Russell Coker <russell@coker.com.au>" "logtools"
.SH "NAME"
clfsplit \- split Common\-Log Format web logs based on IP address

.SH "SYNOPSIS"
.B clfsplit [\-\-help] [\-i input] \-d defaultfile \-f file \-s spec [\-f file \-s spec]

.SH "DESCRIPTION"
The
.B clfsplit
will split up large CLF format web logs based on IP address.  This is for
creating separate log analysis passes for internal and external users of web
pages.

.SH "OVERVIEW"
The
.B 
defaultfile
parameter specifies where data goes if it doesn't match any of the IP ranges.
This could be /dev/null depending on your aims.
.P
The
.B \-i input
parameter gives the file to take input from (default standard input).
.P
The
.B \-f file
parameter must be given before the list of IP addresses.
.P
The
.B spec
parameter is the IP addresses that go to the file in question.  It is of the
form
.B start[\-end][:start[\-end]]
where start and end specify the start and ends of ranges of IPs.  Also the
.B CIDR
notation can be used or a single IP address.
If there is a large number of IP ranges then a file name can be given which
contains a set of IP ranges, one range per line.

.SH "EXIT STATUS"
.B 0
No errors
.P
.B 1
Bad parameters
.P
.B 2
Can't open input
.P
.B 3
Can't open/write to output file
.P
.B 4
Can't open and read from spec file
.SH "AUTHOR"
This program, its manual page, and the Debian package were written by
Russell Coker <russell@coker.com.au>.

.SH "SEE ALSO"
.BR clfmerge (1), clfdomainsplit (1)