Forum Discussion

Francesco_Cripp's avatar
Francesco_Cripp
Icon for Nimbostratus rankNimbostratus
Nov 15, 2010

iRule to log end-to-end response time

Hi, I need to create an iRule to generate a kind of access-log with response times. I need to include the end-to-end response time, including the time in which the load balancer send the response to the client.

 

 

I tried to use the enevts HTTP_REQUEST and HTTP_RESPONSE taking the timestamp of both events and it works. The shortcoming is that the HTTP_RESPONSE is triggered when the load balancer receives the response *from the server*, not when it sends the response to the client, so the time i get from theese two events is not the end-to-end time.

 

 

Does someone know a way to get that data?

 

 

Thanks

 

 

Regards

 

Francesco

 

3 Replies

  • i came across this one.

     

     

    http page response time

     

    http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/afv/topic/aft/1174540/aff/5/showtab/groupforums/Default.aspx
  • Yes, I saw that article. My need is to log response time in a production environment serving real requests. I cannot add any code to the response :S

     

     

    Thanks

     

     

    Regards

     

    Francesco

     

  • without injecting code back to the client, there isn't a way to get true response time. The best you can hope for is the time from the request hitting the LTM to being received at the LTM on the way back from the server.