Apache Error Log Format

[prev] [thread] [next] [Date index for 2005/05/31]

From: Daniel B. Hemmerich
Subject: Apache Error Log Format
Date: 12:36 on 31 May 2005
Hello all...

When a misconfiguration occurs, we receive a new line in the apache 
error logs that is not in the standard error log format (I assume since 
MP is writing to STDERR). Short of changing all of our scripts to 
properly log, is there a quicker method to accomplish the following change:

Change this:

Can't locate /www/path/goes/here//config.pl in @INC (@INC contains: 
/usr/local/lib/perl5/5.8.4/i686-linux /usr/local/lib/perl5/5.8.4 
/usr/local/lib/perl5/site_perl/5.8.4/i686-linux 
/usr/local/lib/perl5/site_perl/5.8.4 /usr/local/lib/perl5/site_perl .) 
at /www/example.com/cgi-bin/example.cgi line 64.

To this:

[Thu May 19 08:47:41 2005] [error] [MODULENAME Can't locate 
/www/path/goes/here//config.pl in @INC (@INC contains: 
/usr/local/lib/perl5/5.8.4/i686-linux /usr/local/lib/perl5/5.8.4 
/usr/local/lib/perl5/site_perl/5.8.4/i686-linux 
/usr/local/lib/perl5/site_perl/5.8.4 /usr/local/lib/perl5/site_perl .) 
at /www/example.com/cgi-bin/example.cgi line 64.

Thanks in advance!

Apache Error Log Format
Daniel B. Hemmerich 12:36 on 31 May 2005

Re: Apache Error Log Format
Jonathan Vanasco 20:51 on 31 May 2005

Re: Apache Error Log Format
Daniel B. Hemmerich 21:19 on 31 May 2005

Re: Apache Error Log Format
Arshavir Grigorian 17:48 on 01 Jun 2005

Re: Apache Error Log Format
Daniel B. Hemmerich 20:52 on 01 Jun 2005

Re: Apache Error Log Format
Stas Bekman 11:44 on 04 Jun 2005

Generated at 20:12 on 05 Jun 2005 by mariachi v0.52