Forum Discussion
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.
- Rico
Cirrus
You can use the "HTTP_RESPONSE" event to log out information about the responses.
Recent Discussions
Related Content
* 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