Forum Discussion

DaveC_53879's avatar
DaveC_53879
Icon for Nimbostratus rankNimbostratus
Oct 07, 2011

How can I log which pool member a request goes to?

I have a rule where I want to point a certain URI to a particular pool member. How can I log which pool member the requests are going to? I see that the rule is being hit because I do get log entries, but I'm not sure that it is actually sending the request to the correct server. I just don't know the syntax for logging which server gets the request.

 

 

when HTTP_REQUEST

 

{ if {[HTTP::uri] starts_with "something"} {

 

pool test_pool member 10.10.0.91

 

log local0. "[IP::remote_addr] directed to 10.10.0.91 "

 

}

 

}

 

 

Dave
  • hope this is helpful.

     

     

    Log Http Tcp Udp To Syslogng

     

    http://devcentral.f5.com/wiki/iRules.LogHttpTcpUdpToSyslogng.ashx