Forum Discussion
Pav_70755
Oct 19, 2011Nimbostratus
Thanks Nitass
I've added the following irule to the VS i want to log the traffic from
when HTTP_REQUEST {
set flag 0
if {[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)"
}
}
It doesnt seem to be logging anything in the ltm file?