Nazir_52641
Apr 05, 2017Cirrus
Known limitation of HSL with proc
Hi,
We have iRules in which we log using HSL. If log servers are down we log locally. We wanted to convert HSL logging to proc so that instead of writing these many lines of code just for logging we can use a proc. Is there any known of using HSL with proc.
when CLIENT_ACCEPTED {
set hsl [HSL::open -publisher $static::log_publisher]
if { $log_hsl == 1 } {
if {[active_members hsl_pool] < 1 ] } {
log local0.info "Accepted client conn [IP::client_addr]:[TCP::client_port]"
} else {
HSL::send $hsl "$CLIENT_ACCEPTED_INFO Accepted client conn [IP::client_addr]:[TCP::client_port]"
}
} else {
log local0.info "Accepted client conn [IP::client_addr]:[TCP::client_port]"
}
}
Thanks Syed Nazir