Forum Discussion
carl_townshend_
Nimbostratus
May 06, 2015please help me to log http 500 responses
Hi all
I have a requirement to log http 500 errors from 2 web servers behind a virtual server ip. I need to log the client ip that requested and also the server that give the http 500 error, I h...
nitass
Employee
May 06, 2015can you double check the irule again? the one you posted looks correct.
when HTTP_REQUEST {
set hostvar [HTTP::host]
set urivar [HTTP::uri]
set ipvar [IP::client_addr]
}
when HTTP_RESPONSE {
if { [HTTP::status] eq 500 } {
log local0. "$ipvar requested $hostvar $urivar and received a 500 from [IP::server_addr]"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects