You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2007/01/26 23:33:56 UTC
Re: [OT] httpd.conf - Capturing 500 errors in the log.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Shekar,
This is off-topic for the Tomcat mailing list. You should post this
question on an Apache httpd mailing list.
- -chris
Shekar Tippur wrote:
> Hello,
>
> Is there any way to configure httpd.conf file to capture only 500
> errors?
>
> I have put in the following entries in httpd.conf file:
>
> LogFormat "%500t %500U %500q %500h %500u \"%500r\" %500s
> \"%500{Cookie}i\" \"%500{Referer}i\" \"%500{User-agent}i\""
> logging500errors
> CustomLog logs/apache/access_log-500 logging500errors
>
> but this seem to insert dummy entries for all other request outputs
>
> (e.g - - - - - "-" - "-" "-" "-")
>
> I tried this and it did not work:
>
> LogFormat "%t %U %q %h %u \"%r\" %s \"%{Cookie}i\" \"%{Referer}i\"
> \"%{User-agent}i\"" logging500errors
>
> SetEnvIf status 500 500env
> CustomLog logs/apache/access_log_pod-500 logging500errors env=500env
>
> What is the SetEnvIf directive to capture the return status?
>
> - Shekar
>
> I want to know if there is a better way to get this done.
>
> Thanks in advance for all your help.
>
> - Shekar
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFuoHU9CaO5/Lv0PARAu9KAJsEIvugesqACAt+e8U3dbHlU3yOKgCgkFUK
yq8q5oQu9ULaqu1nRcZ3v68=
=w4GX
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org