kng_51762
Nimbostratus
Apr 04, 2012Log OneConnect Reuse
We are implementing OneConnect on all our web virtual servers and I am having a hard time verifying that OneConnect is actually reusing connections to the back end servers. The reason being is the web access logs aren't showing the proxied source ips from the ltm.
Without updating the apache/iis logging configs with the x-forwarder rule still produces a valid client source ip address.
Is there a way to log if and when the ltm is reusing a connection from the pool of usable connections? I'm using the following irule but not sure if the ONECONNECT::reuse is actually stating that the connection is being reused or merely that OneConnect is enabled.
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
log local0.debug "OneConnect Status is [ONECONNECT::reuse]"
TCP::release
}
when LB_SELECTED {
log local0.debug "[IP::client_addr]:[TCP::client_port]: Selected [LB::server]"
}
when SERVER_CONNECTED {
log local0.debug "[IP::client_addr]:[TCP::client_port]: New connection to [IP::server_addr]:[TCP::server_port]"
}
We are running version 10.2.2 Build 763.3. Any help will be greatly appreciated.
Thanks.