Forum Discussion
Ger_Hackett_323
May 28, 2015Nimbostratus
Respone Time iRule
Hi,
I’ve used a simple iRule below, to log response times. This has worked perfectly in the past, for a site where the Apache server closes the connection after each request and the client uses a s...
cjunior
May 28, 2015Nacreous
Hi,
How about you take the current time as below, maybe it works for you. [ ]when HTTP_REQUEST {
set reqAge [clock clicks -milliseconds]
set reqURI [HTTP::uri]
}
when HTTP_RESPONSE {
log local0. "$reqURI served in [expr {[clock clicks -milliseconds] - $reqAge}] ms"
unset reqAge reqURI
}
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects