Manual Pages for UNIX Darwin command on man rotatelogs
MyWebUniversity

Manual Pages for UNIX Darwin command on man rotatelogs

rotatelogs(8) rotatelogs(8)

NAME

rotatelogs - rotate Apache logs without having to kill the server

SYNOPSIS

rroottaatteellooggss logfile rotationtime [offset]

DESCRIPTION

rroottaatteellooggss 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/accesslog 86400"

This creates the files /path/to/logs/accesslog.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. OOPPTTIIOONNSS logfile The path plus basename of the logfile. If llooggffiillee 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

hhttttppdd((88))

February 2004 rotatelogs(8)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™