Forum Discussion
Payload keyword to specific nodes
Hi, I am trying to write an irule that will look for words in syslog payload and direct traffic to an IP address and port based on the keyword but also send an untouched copy to another IP Address. So basically send "ABC" to 1.1.1.1:9000 and send "XYZ" 1.1.1.1:9001 but send bot ABC and XYZ to node 2.2.2.2:515. It will split off the ABC and send to node 1.1.1.1:9000 but wont send anything to XYZ.
when CLIENT_ACCEPTED {
if { [UDP::payload] contains "ABC" } { node 1.1.1.1:9000 } elseif { [UDP::payload] contains "XYZ" } { node 1.1.1.1:9001 } else { node 2.2.2.2:514 } }
1 Reply
- IanB
Employee
The node and pool commands supersede a load balancing decision, telling the BigIP where to send the traffic, but only the most recently executed node or pool command will have any effect.
I think the best answer to achieve what you to do is to extract the syslog payload and use HSL::send to send a copy of the payload elsewhere.
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