You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2002/11/26 17:40:55 UTC
cvs commit: httpd-2.0/docs/manual/programs rotatelogs.html
bnicholes 2002/11/26 08:40:55
Modified: docs/manual/programs Tag: APACHE_2_0_BRANCH rotatelogs.html
Log:
This documents functionality that has been in Apache 2.0 for over 6 months.
Since nobody knows how to update the man pages this functionality has gone
undocumented.
Revision Changes Path
No revision
No revision
1.6.2.1 +14 -4 httpd-2.0/docs/manual/programs/rotatelogs.html
Index: rotatelogs.html
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/programs/rotatelogs.html,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -r1.6 -r1.6.2.1
--- rotatelogs.html 11 Oct 2001 15:23:07 -0000 1.6
+++ rotatelogs.html 26 Nov 2002 16:40:55 -0000 1.6.2.1
@@ -7,20 +7,23 @@
<!--#include virtual="header.html" -->
<h1 align="center">Manual Page: rotatelogs</h1>
<!-- This document was autogenerated from the man page -->
-<pre>
-<strong>NAME</strong>
+<pre><strong>NAME</strong>
rotatelogs - rotate Apache logs without having to kill the
server
<strong>SYNOPSIS</strong>
- <strong>rotatelogs </strong><em>logfile rotationtime </em>[<em>offset</em>]
+ <strong>rotatelogs </strong><em>logfile </em>[<em>rotationtime </em>[<em>offset</em>]] | [<em>filesize</em>M]
<strong>DESCRIPTION</strong>
<strong>rotatelogs </strong>is a simple program for use in conjunction with
Apache's piped logfile feature, which can be used like this:
CustomLog "|bin/rotatelogs /var/logs/logfile 86400" common
-
+
+ or
+
+ CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common
+
This creates the files /var/logs/logfile.nnnn where nnnn is
the system time at which the log nominally starts (this time
will always be a multiple of the rotation time, so you can
@@ -43,6 +46,13 @@
zero is assumed and UTC is used. For example, to use
local time in the zone UTC -5 hours, specify a value of
-<em>300 </em>for this argument.
+
+ or
+
+ <em>filesize</em>M
+ The maximum file size in megabytes followed by the
+ letter 'M' to specify size rather than time. Use this
+ parameter in place of both rotationtime and offset.
<strong>PORTABILITY</strong>
The following logfile format string substitutions should be