httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alexus">
Subject rotatelog feature request/suggestion
Date Tue, 26 Feb 2002 20:10:32 GMT

i'm just another user of apache server, and i here not to ask for support or
anything like that, i'm here to request/suggest feature for new apache

c# /usr/local/apache/bin/rotatelogs
Usage: /usr/local/apache/bin/rotatelogs <logfile> <rotation time in seconds>
[offset minutes from UTC]

Add this:

TransferLog "|/usr/local/apache/bin/rotatelogs /some/where 86400"

to httpd.conf. The generated name will be /some/where.nnnn where nnnn is the
system time at which the log nominally starts (N.B. this time will always be
multiple of the rotation time, so you can synchronize cron scripts with it).
At the end of each rotation time a new log is started.

after using this rotatelog software i got these

%ls -al transfer_log.1014*
-rw-r--r--  1 root  alexus  21221 Feb 21 18:55 transfer_log.1014249600
-rw-r--r--  1 root  alexus  81912 Feb 22 18:45 transfer_log.1014336000
-rw-r--r--  1 root  alexus  22944 Feb 23 18:44 transfer_log.1014422400
-rw-r--r--  1 root  alexus   8893 Feb 24 18:31 transfer_log.1014508800
-rw-r--r--  1 root  alexus  34471 Feb 25 18:45 transfer_log.1014595200
-rw-r--r--  1 root  alexus  28190 Feb 26 10:40 transfer_log.1014681600

dates is all kind of different, is there a way to use crontab type
rotations? basically like i want to do it once a month or so, and i'll put
that amount of seconds that goes in month first of all some monthes are
longer and some are shorter and second i'm not quite sure if i won't need to
restart my computer during this month so apache will start again and going
start that count from the time i start apache.

also that system time, can it be changed to somethin more understandable for
users? users can't understand which file goes where, and especially those
who used little bit more advanced those logs, they wrote their scripts i can
suggest them look at the dates but that wasn't a good idea, is there a way
to change format.

also is there a way to make old log to tar/gzip so it'd take less space on
hard drive? and also keep only last 7 logs (one full week) and delete

View raw message