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_HDRTS_EVENT_HTTP_TXN_CLOSE
but for https, it seems not working.
Please help.
Cheng Yi