Forum Discussion
Pav_70755
Oct 19, 2011Nimbostratus
ok the ltm file hasnt been updated yet and i've changed it to this:
when HTTP_REQUEST {
set flag 0
if {[HTTP::host] eq "78.42.24.X" or [HTTP::cookie exists "mxdata"] } {
set flag 1
set http_request_time [clock clicks -milliseconds]
set LogString "Client [IP::client_addr]:[TCP::client_port] -> [HTTP::host][HTTP::uri]"
}
}
when HTTP_RESPONSE {
if {$flag} {
log local0. "$LogString (response) - pool info: [LB::server] - status: [HTTP::status] (request/response delta: [expr [clock clicks -milliseconds] - $http_request_time]ms)"
}
}