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