Subject: | |
From: | |
Reply To: | |
Date: | Thu, 26 Nov 1998 17:27:37 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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
|
|
|