httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Smith <>
Subject [users@httpd] Problem With Piped ErrorLog
Date Tue, 28 Dec 2004 16:29:59 GMT
I can't seem to get piped ErrorLogs to work more than once or twice.


FreeBSD 4.7-RELEASE-p27 #33: Mo i386
Apache 1.3.33
Perl 5.6.1

In particular, my <httpd.conf> file contains

<VirtualHost ...>
ErrorLog	"|/usr/local/src/errorlog/ >>/www/logs/error2.log"

where <> is as follows:

if (-s STDIN)
         print <STDIN>;
} else
	$lt = localtime;
         print "(MT) [$lt]\n";
The net result is that the file </www/logs/error2.log> gets one or two messages 
(rarely does it contains more) and then no more until the server is restarted. 
No other ErrorLog directive uses this file.

I have tried it without the ">>/www/logs/error2.log" and with the perl script 
opening, printing to, and closing the <error2.log> file directly -- same behavior.

This script is considerably pared down from the original which attempted to 
filter out hacker attempts so I could see the important error messages.

What am I doing wrong???
Bob Smith - -
a.k.a.    -

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message