Debian Codegraph @

doc/cronosplit.1m

raw ◀ ▶
Source reconstructed at patch state 1 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
1 .\" -*- nroff -*-
2 .\" $Id: cronosplit.1m,v 1.4 1999/12/20 09:03:50 andrew Exp $
3 .\" Copyright (c) 1999 Apache Software Foundation
4 .\" Copyright (c) 1997-1999 Andrew Ford and Ford & Mason Ltd.
5 .\" The file License specifies the terms and conditions for redistribution.
6 .\"
7 .TH cronosplit 1m "March 1998"
8 .\"
9 .SH NAME
10 cronosplit \- split log files into cronolog-compatible files
11 .\"
12 .SH SYNOPSIS
13 .B cronosplit
14 --template=TEMPLATE [--print-invalid] [--help] [--version] file ...
15 .\"
16 .SH DESCRIPTION
17 .B cronosplit
18 is a simple program that reads lines from a set of input log files,
19 which must be in
20 .I "Common Log Format"
21 or
22 .I "NCSA Combined/XLF/ELF Format"
23 and write each lines to an output files, the name of which is
24 constructed using the
25 .B template
26 specified and timestamp from the the line. The template uses the same
27 format specifiers as the Unix
28 .BR date (1)
29 command (which are the same as the standard C strftime library
30 function).
31 .\"
32 .SH Options
33 .C cronosplit
34 accepts the following options and arguments:
35 .IP "--template=\fITEMPLATE\fP"
36 specifies the template for the output log files (using the format
37 specifiers described below).
38 .IP "--verbose"
39 print additional status messages to the standard error stream.
40 .IP "--debug"
41 print debug messages to the standard error stream.
42 .IP "--help"
43 print a help message and then exit.
44 .IP "--version"
45 print version information and exit.
46 .\"
47 .SH Template format
48 Each character in the template represents a character in the expanded
49 filename, except for date and time format specifiers, which are
50 replaced by their expansion. Format specifiers consist of a `%'
51 followed by one of the following characters:
52 .IP %
53 a literal % character
54 .IP n
55 a new-line character
56 .IP t
57 a horizontal tab character
58 .PP
59 Time fields:
60 .IP H
61 hour (00..23)
62 .IP I
63 hour (01..12)
64 .IP p
65 the locale's AM or PM indicator
66 .IP M
67 minute (00..59)
68 .IP S
69 second (00..61, which allows for leap seconds)
70 .IP X
71 the locale's time representation (e.g.: "15:12:47")
72 .IP Z
73 time zone (e.g. GMT), or nothing if the time zone cannot be determined
74 .PP
75 Date fields:
76 .IP a
77 the locale's abbreviated weekday name (e.g.: Sun..Sat)
78 .IP A
79 the locale's full weekday name (e.g.: Sunday .. Saturday)
80 .IP b
81 the locale's abbreviated month name (e.g.: Jan .. Dec)
82 .IP B
83 the locale's full month name, (e.g.: January .. December)
84 .IP c
85 the locale's date and time (e.g.: "Sun Dec 15 14:12:47 GMT 1996")
86 .IP d
87 day of month (01 .. 31)
88 .IP j
89 day of year (001 .. 366)
90 .IP m
91 month (01 .. 12)
92 .IP U
93 week of the year with Sunday as first day of week (00..53, where week
94 1 is the week containing the first Sunday of the year)
95 .IP W
96 week of the year with Monday as first day of week (00..53, where week
97 1 is the week containing the first Monday of the year)
98 .IP w
99 day of week (0 .. 6, where 0 corresponds to Sunday)
100 .IP x
101 locale's date representation (e.g. today in Britain: "12/04/96")
102 .IP y
103 year without the century (00 .. 99)
104 .IP Y
105 year with the century (1970 .. 2038)
106 .P
107 Other specifiers may be available depending on the C library's
108 implementation of the
109 .B strftime
110 function.
111 .P
112 .SH SEE ALSO
113 .BR apache (1m)
114 .BR cronolog (1m)
115 .BR date (1)
116 .BR strftime (3)
117 .BR environ (5)
118 .PP
119 More information and the latest version of
120 .B cronolog
121 and
122 .B cronosplit
123 can be obtained from
124 .LP
125 http://www.ford-mason.co.uk/resources/cronolog/
126 .LP
127 If you have any suggestions, bug reports, fixes, or enhancements,
128 please mail them to the author.
129 .SS More about Apache
130 Documentation for the Apache http server is available from
131 .LP
132 http://www.apache.org
133 .SH AUTHOR
134 Andrew Ford <[email protected]>
135 .LP
136 .B cronosplit
137 is based on a script called
138 .B splitlog
139 by Roy Fielding, which is part of the
140 .B wwwstat
141 package.
142