> On Mar 3, 2015, at 4:09 PM, 毅程 <[email protected]> wrote:
> 
> Thanks Sudheer.
> I need a more inline/realtime way instead of passive log way.
> The problem i am facing now is
> for http there is no problem
> for https i can't find the right hook to get the request and response size 
> even though the client already get the response. (since there is keep alive 
> http connections for https), I can only get the size when the transaction is 
> closed which will be very late.

Transaction hooks are no different between http and https. Maybe there's a 
problem in how you are selecting transactions to attach the hooks? Or if this 
is a remap plugin, are you applying the plugin to the right remap rules?

> 
> Cheng Yi
> 
> 2015-03-03 15:48 GMT-08:00 Sudheer Vinukonda <[email protected]>:
> Typically, this information is available from the custom logging fields:
> 
> https://docs.trafficserver.apache.org/en/latest/admin/event-logging-formats.en.html
> 
> cqbl
> The client request transfer length; the body length in the client request to 
> Traffic Server (in bytes).
> cqhl
> The client request header length; the header length in the client request to 
> Traffic Server.
> csscl
> The cached response length (in bytes) from origin server to Traffic Server.
> csshl
> The cached header length in the origin server response to Traffic Server (in 
> bytes).
> 
> 
> pscl
> The length of the Traffic Server response to the client (in bytes).
> pshl
> The header length in Traffic Server’s response to the client.
> psql
> The proxy response transfer length in Squid format (includes header and 
> content length).
> 
> sscl
> The response length (in bytes) from origin server to Traffic Server.
> sshl
> The header length (in bytes) in the origin server response to Traffic Server.
> 
> 
> Thanks,
> 
> Sudheer
> From: 毅程 <[email protected]>
> To: [email protected] 
> Sent: Tuesday, March 3, 2015 3:00 PM
> Subject: about event hooks for https messages
> 
> Hi:
> 
> I would like to measure the length of each request/response.
> I can do it for http messages by adding hook at 
> TS_EVENT_HTTP_SEND_RESPONSE_HDR
> TS_EVENT_HTTP_TXN_CLOSE
> 
> but for https, it seems not working.
> 
> Please help.
> 
> Cheng Yi
> 
> 
> 
> 

Reply via email to