Forum Discussion
Looking for iRule that logs source IP & destination URL when header "X-Application=SHARED"
Nevermind, I was able to put one together. Here it is:
when HTTP_REQUEST { set LogStringNonProd "Client [IP::client_addr]:[TCP::client_port] -> [HTTP::host][HTTP::uri]" Check for 'X-Application: SHARED' if { ([HTTP::header value "X-Application"] contains "SHARED") } { log local0. " " log local0. "===================================================" log local0. "$LogStringNonProd (request)" log local0. "X-Application is set to SHARED for this connection." log local0. "===================================================" log local0. " " } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
