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...
carl_townshend_
Nimbostratus
May 06, 2015This is copied and pasted from my F5
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::remote_addr]” }}
I am not seeing the node IP etc, and also what is the invalid command name that it keeps coming up with ?
cheers
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