Forum Discussion
Eric_Weiss_2486
Nimbostratus
Oct 19, 2017Looking for iRule that logs source IP & destination URL when header "X-Application=SHARED"
Hello, I'm looking for an iRule that may already exist, which would log the source IP and URL destination when header “X-Application=SHARED”. The goal of this is to try and identify where an invali...
Kevin_Davies
Nacreous
Oct 20, 2017Thats probably good for a single request however you are executing commands you don't need to. If you only need to check the first HTTP request in that connection (as their can be multiple) uncomment the event disable.
when HTTP_REQUEST {
if { ([HTTP::header "X-Application"] eq "SHARED") } {
log local0. "Client [IP::client_addr]:[TCP::client_port] -> [HTTP::host][HTTP::uri]"
event disable
}
}
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
