Forum Discussion
dan_19334
Nimbostratus
Jan 15, 2009Match TCP::payload to Newline
How do you match the TCP::payload to a Newline?
I would like to load balance individual syslog messages across a pool of servers. The syslog client connects to the VIP and maintains ...
dan_19334
Nimbostratus
Jan 26, 2009Thanks Aaron, you where on the right track...syslog doesn't terminate it's messages with CRLF, only with LF (my bad).
Converting to HEX helped figure this out, but now knowing this, it is not necessary to convert to HEX in the iRule.
So, here is a working iRule to load balance syslog-ng messages to multiple nodes in a pool -- while maintaining a persistent TCP session with the client.
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
if { [TCP::payload] contains "\x0a" } {
LB::detach
TCP::release
TCP::collect
}
}
Also, with oneconnect enabled the TCP sessions are maintained to the backend nodes.
Thanks Again!
-Dan
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