Travis_94026
Feb 22, 2012Nimbostratus
Sending TCP Traffic via Syslog
Below is the simple iRule I am using to send TCP traffic via syslog for my load balancer. However I am getting the error listed below sent to my syslog receiver.
Error:
<131>Feb 22 12:12:32 local/tmm err tmm[4911]: 01220001:3: TCL error: Test - Routing problem (line 2) invoked from within "log local0.info "Client $client -> VIP: $vip -> Node: $node""
iRule when CLIENT_ACCEPTED {
set vip [IP::local_addr]:[TCP::local_port]
}
when SERVER_CONNECTED {
set client "[IP::client_addr]:[TCP::client_port]"
set node "[IP::server_addr]:[TCP::server_port]"
}
when CLIENT_CLOSED {
log connection info
log local0.info "Client $client -> VIP: $vip -> Node: $node"
}