Forum Discussion
log command into an irule
Is this what you're after?
when XML_CONTENT_BASED_ROUTING {
for {set i 0} { $i < $XML_count } {incr i} {
if {($XML_queries($i) contains "CDetails")} {
pool qa2-pool
} elseif {($XML_queries($i) contains "GetBalances")} {
pool qa2-pool
}
log local0. "IP:[IP::remote_addr] XML_queries\($i\):$XML_queries($i) pool:[LB::server pool]"
}
}
BTW the logic above doesn't quite make sense - you may want to put a 'break' statement in to leave the loop?
Will iRule be used once per TCP connection , in our scenario client is opening a TCP session and with in the same session application is making multiple call , is it possible for each call to hit the irule or can i create a loop for the same TCP session . we are doing ssl offload on f5 and again encrypting the traffic from f5 to pool members.
Please advice me on this
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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