Yugandhar
Mar 06, 2019Nimbostratus
HSL iRule to log the L4 and L7 traffic.
Hi
Just want to check whether we can use the below iRule for High Speed logging and also want to know how can we log the HTTP response in the same iRule ?.
when CLIENT_ACCEPTED {
set HSL-POOL syslog-pool
set hsl [HSL::open -proto UDP -pool $HSL-POOL]
}
when HTTP_REQUEST {
set FrontEnd "Received a request from Client [IP::client_addr]:[TCP::client_port] to the VIP [IP::local_addr]:[TCP::local_port] for [HTTP::host][HTTP::uri]"
}
when SERVER_CONNECTED {
set BackEnd "Forwarding the request from LB [IP::local_addr]:[TCP::local_port] to the Server [IP::remote_addr}]:[TCP::server_port]"
HSL::send $hsl "<190> HSL: $FronEnd --> $BackEnd"
}
Thanks,
Yugandhar.