]> granicus.if.org Git - apache/blobdiff - docs/manual/programs/rotatelogs.html
- removed obs_* files
[apache] / docs / manual / programs / rotatelogs.html
index 45f233b9b93d4ce266ae108290cd0a8f081b5cad..7bf88d17b7e9c775af6e166dd989cf95f2317597 100644 (file)
@@ -7,20 +7,23 @@ vlink="#000080" alink="#ff0000">
 <!--#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 &quot;|bin/rotatelogs /var/logs/logfile 5M&quot; 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 @@ vlink="#000080" alink="#ff0000">
           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