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.
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 > > cqblThe client request transfer length; the body length in the client > request to Traffic Server (in bytes).cqhlThe client request header > length; the header length in the client request to Traffic Server.cssclThe > cached response length (in bytes) from origin server to Traffic Server. > csshlThe cached header length in the origin server response to Traffic > Server (in bytes). > > > psclThe length of the Traffic Server response to the client (in bytes). > pshlThe header length in Traffic Server’s response to the client.psqlThe > proxy response transfer length in Squid format (includes header and content > length). > > ssclThe response length (in bytes) from origin server to Traffic Server. > sshlThe 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 > > > >
