Debian Codegraph @

doc/cronosplit.1m

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