~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to docs/manual/programs/rotatelogs.html.en

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1"?>
 
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
3
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
 
4
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
5
              This file is generated from xml source: DO NOT EDIT
 
6
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
7
      -->
 
8
<title>rotatelogs - Piped logging program to rotate Apache logs - Apache HTTP Server</title>
 
9
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
 
10
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
 
11
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
 
12
<link href="../images/favicon.ico" rel="shortcut icon" /></head>
 
13
<body id="manual-page"><div id="page-header">
 
14
<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
 
15
<p class="apache">Apache HTTP Server Version 2.2</p>
 
16
<img alt="" src="../images/feather.gif" /></div>
 
17
<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
 
18
<div id="path">
 
19
<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.2</a> &gt; <a href="./">Programs</a></div><div id="page-content"><div id="preamble"><h1>rotatelogs - Piped logging program to rotate Apache logs</h1>
 
20
<div class="toplang">
 
21
<p><span>Available Languages: </span><a href="../en/programs/rotatelogs.html" title="English">&nbsp;en&nbsp;</a> |
 
22
<a href="../ko/programs/rotatelogs.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
 
23
</div>
 
24
 
 
25
     <p><code>rotatelogs</code> is a simple program for use in
 
26
     conjunction with Apache's piped logfile feature.  For example:</p>
 
27
 
 
28
<div class="example"><p><code>
 
29
     CustomLog "|bin/rotatelogs /var/logs/logfile 86400" common
 
30
</code></p></div>
 
31
         
 
32
     <p>This creates the files /var/logs/logfile.nnnn where nnnn  is
 
33
     the system time at which the log nominally starts (this time
 
34
     will always be a multiple of the rotation time, so  you  can
 
35
     synchronize cron scripts with it).  At the end of each rotation
 
36
     time (here after 24 hours) a new log is started.</p>
 
37
 
 
38
<div class="example"><p><code>
 
39
     CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common
 
40
</code></p></div>
 
41
 
 
42
     <p>This configuration will rotate the logfile whenever it reaches
 
43
     a size of 5 megabytes.</p>
 
44
 
 
45
<div class="example"><p><code>
 
46
     ErrorLog "|bin/rotatelogs /var/logs/errorlog.%Y-%m-%d-%H_%M_%S 5M"
 
47
</code></p></div>
 
48
     <p>This configuration will rotate the error logfile whenever it
 
49
     reaches a size of 5 megabytes, and the suffix to the logfile name
 
50
     will be created of the form
 
51
     <code>errorlog.YYYY-mm-dd-HH_MM_SS</code>.</p>
 
52
 
 
53
</div>
 
54
<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis">Synopsis</a></li>
 
55
<li><img alt="" src="../images/down.gif" /> <a href="#options">Options</a></li>
 
56
<li><img alt="" src="../images/down.gif" /> <a href="#portability">Portability</a></li>
 
57
</ul></div>
 
58
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 
59
<div class="section">
 
60
<h2><a name="synopsis" id="synopsis">Synopsis</a></h2>
 
61
 
 
62
     <p><code><strong>rotatelogs</strong>
 
63
     [ -<strong>l</strong> ]
 
64
     <var>logfile</var>
 
65
     [ <var>rotationtime</var> [ <var>offset</var> ]] |
 
66
     [ <var>filesize</var>M ]</code></p>
 
67
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 
68
<div class="section">
 
69
<h2><a name="options" id="options">Options</a></h2>
 
70
 
 
71
<dl>
 
72
 
 
73
<dt><code>-l</code></dt>
 
74
<dd>Causes the use of local time rather than GMT as the base for the
 
75
interval. Note that using <code>-l</code> in an environment which changes the
 
76
GMT offset (such as for BST or DST) can lead to unpredictable results!</dd>
 
77
 
 
78
<dt><code><var>logfile</var></code></dt>
 
79
 
 
80
<dd>The path plus basename of the logfile.  If <var>logfile</var>
 
81
includes any '%' characters, it is treated as a format string for
 
82
<code>strftime(3)</code>.  Otherwise, the suffix
 
83
<var>.nnnnnnnnnn</var> is automatically added and is the time in
 
84
seconds.  Both formats compute the start time from the beginning of
 
85
the current period.</dd>
 
86
 
 
87
<dt><code><var>rotationtime</var></code></dt>
 
88
 
 
89
<dd>The time between log file rotations in seconds.</dd>
 
90
 
 
91
<dt><code><var>offset</var></code></dt>
 
92
 
 
93
<dd>The number of minutes offset from UTC.  If omitted, zero is
 
94
assumed and UTC is used.  For example, to use local time in the zone
 
95
UTC -5 hours, specify a value of <code>-300</code> for this argument.</dd>
 
96
 
 
97
<dt><code><var>filesize</var>M</code></dt>
 
98
 
 
99
<dd>The maximum file size in megabytes followed by the letter
 
100
<code>M</code> to specify size rather than time.  Use this parameter
 
101
in place of both rotationtime and offset.</dd>
 
102
</dl>
 
103
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 
104
<div class="section">
 
105
<h2><a name="portability" id="portability">Portability</a></h2>
 
106
 
 
107
<p>The following logfile format string substitutions should be
 
108
supported by all <code>strftime(3)</code> implementations, see
 
109
the <code>strftime(3)</code> man page for library-specific
 
110
extensions.</p>
 
111
 
 
112
<table class="bordered"><tr><td><code>%A</code></td><td>full weekday name (localized)</td></tr>
 
113
<tr class="odd"><td><code>%a</code></td><td>3-character weekday name (localized)</td></tr>
 
114
<tr><td><code>%B</code></td><td>full month name (localized)</td></tr>
 
115
<tr class="odd"><td><code>%b</code></td><td>3-character month name (localized)</td></tr>
 
116
<tr><td><code>%c</code></td><td>date and time (localized)</td></tr>
 
117
<tr class="odd"><td><code>%d</code></td><td>2-digit day of month</td></tr>
 
118
<tr><td><code>%H</code></td><td>2-digit hour (24 hour clock)</td></tr>
 
119
<tr class="odd"><td><code>%I</code></td><td>2-digit hour (12 hour clock)</td></tr>
 
120
<tr><td><code>%j</code></td><td>3-digit day of year</td></tr>
 
121
<tr class="odd"><td><code>%M</code></td><td>2-digit minute</td></tr>
 
122
<tr><td><code>%m</code></td><td>2-digit month</td></tr>
 
123
<tr class="odd"><td><code>%p</code></td><td>am/pm of 12 hour clock (localized)</td></tr>
 
124
<tr><td><code>%S</code></td><td>2-digit second</td></tr>
 
125
<tr class="odd"><td><code>%U</code></td><td>2-digit week of year 
 
126
(Sunday first day of week)</td></tr>
 
127
<tr><td><code>%W</code></td><td>2-digit week of year 
 
128
(Monday first day of week)</td></tr>
 
129
<tr class="odd"><td><code>%w</code></td><td>1-digit weekday 
 
130
(Sunday first day of week)</td></tr>
 
131
<tr><td><code>%X</code></td><td>time (localized)</td></tr>
 
132
<tr class="odd"><td><code>%x</code></td><td>date (localized)</td></tr>
 
133
<tr><td><code>%Y</code></td><td>4-digit year</td></tr>
 
134
<tr class="odd"><td><code>%y</code></td><td>2-digit year</td></tr>
 
135
<tr><td><code>%Z</code></td><td>time zone name</td></tr>
 
136
<tr class="odd"><td><code>%%</code></td><td>literal `%'</td></tr>
 
137
</table>
 
138
 
 
139
</div></div>
 
140
<div class="bottomlang">
 
141
<p><span>Available Languages: </span><a href="../en/programs/rotatelogs.html" title="English">&nbsp;en&nbsp;</a> |
 
142
<a href="../ko/programs/rotatelogs.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
 
143
</div><div id="footer">
 
144
<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
 
145
<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>
 
146
</body></html>
 
 
b'\\ No newline at end of file'