Debian Codegraph @

doc/cronosplit.1m

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