Forum Discussion
dk_01
Nimbostratus
Sep 08, 2016Adding logging to Redirect Irule.
I have an Irule that I wrote to perform redirect when pool becomes unavailable. I am trying to insert some logging because when we are seeing users still accessing old URL when site is unavailable. ...
Vijay_E
Cirrus
Sep 08, 2016Use "log local0." statement wherever you want to log and whatever element you are trying to log:
when HTTP_REQUEST {
if { [HTTP::host] equals "web1.com" } {
if { [active_members web_pool] equals 0 } {
log local0."Host header - [HTTP::host]"
HTTP::redirect "http://web2.com"
}
}
}
Refer to this link for more details.
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