Forum Discussion

Andrew_Saar_110's avatar
Andrew_Saar_110
Icon for Nimbostratus rankNimbostratus
Nov 22, 2006

Logging time it takes for http transaction

We're having a customer claim they're timing out when interfacing with a server via HTTP that passes through our BigIP. The end server does not see any issues and so I would like to log a message each time this client connects via http and then when the connection is closed, or when data is returned (not sure which is more doable in iRules).

 

 

This is a simple GET request where there is about 4KB of data in the GET request and then a small amount of data in the return from the server.

 

 

Is there any way to log when an http connection is initiated and then when it is closed or when the end server returns the response?

 

 

Thank you,

 

Andrew
  • Martin_Machacek's avatar
    Martin_Machacek
    Historic F5 Account
    V4.x iRules allow to log information only on request from client (using the log statement in a rule). Log output goes to syslog and because of that messages are timestamped (with 1 second resolution). There is no way how to log the end of a transaction via iRule (and as a matter of fact there is no easy way how to do it at all in v4.x).
  • Thanks mmac. We would be able to do this in 9.x though right? I saw some sample rules in the code section that seemed to do what I want (logged response coming in and reply going out).
  • Martin_Machacek's avatar
    Martin_Machacek
    Historic F5 Account
    Yes, v9.x iRules are much more flexible and you can do the transaction time logging easily.