Forum Discussion
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"
}
- nitassEmployeethe irule looks okay to me. have you customized syslog-ng configuration?
[root@ve1023:Active] config b virtual bar list virtual bar { snat automap pool foo destination 172.28.19.79:80 ip protocol 6 rules myrule } [root@ve1023:Active] config b pool foo list pool foo { members 200.200.200.101:80 {} } [root@ve1023:Active] config b rule myrule list rule myrule { 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" } } [root@ve1023:Active] config cat /var/log/ltm Feb 22 23:30:12 local/tmm info tmm[4822]: Rule myrule : Client 172.28.19.251:50352 -> VIP: 172.28.19.79:80 -> Node: 200.200.200.101:80
- memanole_60339Nimbostratushi Guys,
- hooleylistCirrostratusIs 10.1.1.1 on the management port? If so, that's not currently supported as TMM needs to use a switch port to send the log messages.
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