*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> rotatelogs (8)              
Title
Content
Arch
Section
 

rotatelogs(8)

Contents


NAME    [Toc]    [Back]

       rotatelogs - rotate Apache logs without having to kill the
       server

SYNOPSIS    [Toc]    [Back]

       rotatelogs logfile rotationtime [offset]

DESCRIPTION    [Toc]    [Back]

       rotatelogs is a simple program for use in conjunction with
       Apache's  piped  logfile  feature  which  can be used like
       this:

          TransferLog  "|   rotatelogs   /path/to/logs/access_log
       86400"

       This creates the files /path/to/logs/access_log.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 synchronize cron scripts with it).  At the  end
       of  each  rotation time (here after 24 hours) a new log is
       started.

OPTIONS    [Toc]    [Back]

       logfile
              The path plus basename of the logfile.  If  logfile
              includes  any % characters, it is treated as a format
 string for strftime(3).  Otherwise, the  suffix
              .nnnn  is  automatically  added  and is the time at
              which the logfile was created.

       rotationtime
              The rotation time in seconds.

       offset The number of minutes offset from UTC.  If omitted,
              zero  is  assumed and UTC is used.  For example, to
              use local time in the zone UTC -5 hours, specify  a
              value of -300 for this argument.

SEE ALSO    [Toc]    [Back]

      
      
       httpd(8)


                            March 2001                          1
[ Back ]
 Similar pages
Name OS Title
apachectl OpenBSD Apache HTTP server control interface
httpd OpenBSD Apache Hypertext Transfer Protocol Server
apxs OpenBSD APache eXtenSion tool
logresolve OpenBSD resolve hostnames for IP-adresses in Apache logfiles
CGI::Apache IRIX Make things work with CGI.pm against Perl-Apache API
miser_kill IRIX kill a miser job
killall FreeBSD kill processes by name
killall Linux kill processes by name
DtMsgLogMessage HP-UX logs a message
xkill Tru64 kill a client by its X resource
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service