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 16, 2009This is using TCP via syslog-ng.
I am not able to get inside of the If statement with either \x0D\x0A or \x0d\x0a. I also tried via this method of converting the payload to hex which didn't work either:
when CLIENT_DATA {
log local0. "In Client Data: [TCP::payload]"
binary scan [TCP::payload] H* payload_hex
log local0. "In Binary Data: $payload_hex"
Also tried to match payload_hex to "\x0d\x0a"
if { $payload_hex contains "0d0a" } {
log local0. "XXXXXInside of IF"
LB::detach
TCP::release
TCP::collect
}
}
Not sure how to convert \x0d\x0a to binary, but the reverse did not work so I assume this would not either.
Any other ideas? Do you think this is a bug or a irule logic issue?
-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