Debian Codegraph @

doc/cronosplit.1m

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