HP3000-L Archives

November 1998, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Andreas Schmidt <[log in to unmask]>
Reply To:
Date:
Thu, 26 Nov 1998 17:27:37 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (62 lines)
Try this one:

TransferLog "|APACHE/PUB/apache_1.2.5_mpe/support/rotatelogs
/APACHE/PUB/logs/error_log 86400"
TransferLog "|APACHE/PUB/apache_1.2.5_mpe/support/rotatelogs
/APACHE/PUB/logs/access_log 86400

The Unix based Apache seems not to know where the rotatelogs executable is.
rotatelogs itself needs two parameters: which logfile to rotate, and after
which time.
If you're in the shell you can execute this program:

XEBHH2: /APACHE/PUB/apache_1.2.5_mpe/support [129] > ./rotatelogs
./rotatelogs <logfile> <rotation time in seconds>

Add this:

TransferLog "|./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 a
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.
XEBHH2: /APACHE/PUB/apache_1.2.5_mpe/support [130] >


Best regards, Andreas Schmidt, CSC, Germany





[log in to unmask] on 11/26/98 04:16:52 PM

Please respond to [log in to unmask]

To:   [log in to unmask]
cc:    (bcc: Andreas Schmidt/HI/CSC)
Subject:  Apache logs files




any apache expert out there
I'm pretty clueless here. I've got apache running successfully after much
reading and translating (i'm not Unix ified yet:)) documentation.
The log files in \logs\ need to be reset occasionally and the doc is
unclear
about this. If I try to include TransferLog | rotatelogs in the httpd.conf
file, I get a syntax error
"TransferLog takes one argument, the filename of the access log"
So is this the wrong place to include this, or what?
While I'm at it. Is there any program for checking the logs, or do I make
one of my own.
Oh yes - OS is MPE/iX 5.5 PP4, Apache version 1.2b6 (& by the way, showme =
RELEASE C.55.00)
Shirley MacLaughlin
Crossley Carpet Mills, Truro

ATOM RSS1 RSS2