Forum Discussion
1 Reply
Sort By
- Jason_AdamsEmployee
Thanks to hoolio (here), we were able to use the following iRule to achieve the desired functionality through the use of Sideband Connections:
when CLIENT_ACCEPTED { set clientaddr [IP::client_addr] if { ([class match $clientaddr equals log_clone_address_list_updated]) } { Open a sideband connection with the clone syslog pool if {[catch { connect -protocol UDP -myaddr $clientaddr 10.220.20.14:514 } conn_id ] == 0 && $conn_id ne ""} { Save UDP Payload data to send set data "[UDP::payload]" Send the data with a 2ms timeout on the connection identifier received from the connect command set send_bytes [send -timeout 5 -status send_status $conn_id $data] Log the number of bytes sent and the send status log local0. "Sent $send_bytes with status $send_status" } } else { log local0. "$clientaddr: log data NOT cloned" } }