Forum Discussion
Shridhar_Kulkar
Nimbostratus
Mar 20, 2013How to log only the first connection from a client to a source address perstence enabled virtual server ?
If I have virtual server that has source address persistence enabled, is there a way I can log the client address connecting to it ONLY for the first time and NOT its subsequent connections ?
Shridhar_Kulkar
Nimbostratus
Mar 25, 2013The example in the Wiki link shows using the HTTP_REQUEST, for which there will be a need to enable HTTP profile to the virtual server first. Can the HSL be enabled something like below -
rule myrule {
when CLIENT_ACCEPTED {
if { [persist lookup source_addr [IP::client_addr]] eq "" } {
set hsl [HSL::open -proto UDP -pool syslog_server_pool]
HSL::send $hsl "[IP::client_addr]:[TCP::client_port]"
}
}
}
Question:
1> Is it mandatory to call the variable name as 'hsl' ?
2> What would the LTM store in this variable 'hsl', if the i-rule is executed simultaneously by 2 different virtual servers at the same time ?
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