when HTTP_REQUEST {
set request_time [clock clicks -milliseconds]
set uri [HTTP::uri]
}
when HTTP_RESPONSE {
# milliseconds is 1/1000 second
set response_time [expr [clock clicks -milliseconds] - $request_time]
if { $response_time > 10}
{
log local0.warn "Response time ${response_time}ms uri is $uri from [clientside {IP::remote_addr}]:[clientside {TCP::remote_port}]."
}
}
댓글 없음:
댓글 쓰기