Forum Discussion
Mathew_Loesch
Nimbostratus
Do you have an example of what that iRule may look like? I am not certain if I can call the same profile in HTTP_REQUEST and HTTP_RESPONSE. Or do i have to create two different profiles, and call them in the appropriate event?? Thanks...
Brad_Parker
Mar 03, 2015Cirrus
You could try something like this, but I haven't tested it myself yet.
when HTTP_REQUEST {
set hsl [HSL::open -proto UDP -pool ]
set ID [md5 "[clock seconds][IP::client_addr][TCP::client_port]"]
HSL::send $hsl "$ID,[clock format [clock seconds] -gmt],[IP::client_addr],[TCP::client_port],[HTTP::request]"
}
when HTTP_RESPONSE {
HSL::send $hsl "$ID,[clock format [clock seconds] -gmt],[IP::client_addr],[TCP::client_port],[HTTP::status]"
}