dk_01
Sep 08, 2016Nimbostratus
Adding 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. I have been reading DEV Article about logging but can't seem to make it work. I would like to log client IP and if the redirect is used. Any suggestions would be helpful. Thanks
Here is my Irule when HTTP_REQUEST { if { [HTTP::host] equals "web1.com" }{ if { [active_members web_pool] equals 0 } { HTTP::redirect "http://web2.com" } } }