The following figure shows a sample log entry in a squid.log file.

The following list describes each field.
1cqtq- The client request timestamp in Squid format; the time of the client request in seconds since January 1, 1970 UTC (with millisecond resolution).
2ttms- The time Traffic Server spent processing the client request; the number of milliseconds between the time the client established the connection with Traffic Server and the time Traffic Server sent the last byte of the response back to the client.
3chi- The IP address of the client’s host machine.
4crc/pssc- The cache result code; how the cache responded to the request:
HIT,MISS, and so on. Cache result codes are described here.
The proxy response status code (the HTTP response status code from Traffic Server to client). 5psql- The length of the Traffic Server response to the client in bytes, including headers and content.
6cqhm- The client request method:
GET,POST, and so on. 7cquc- The client request canonical URL; blanks and other characters that might not be parsed by log analysis tools are replaced by escape sequences. The escape sequence is a percentage sign followed by the ASCII code number of the replaced character in hex.
8caun- The username of the authenticated client. A hyphen (
-) means that no authentication was required. 9phr/pqsn-
The proxy hierarchy route; the route Traffic Server used to retrieve the object.
The proxy request server name; the name of the server that fulfilled the request. If the request was a cache hit, then this field contains a hyphen (
-). 10-
psct -
The proxy response content type; the object content type taken from the Traffic Server response header.
Squid- and Netscape-format: Cache Result Codes
The following table describes the cache result codes in Squid and Netscape log files.
TCP_HIT- A valid copy of the requested object was in the cache and Traffic Server sent the object to the client.
TCP_MISS- The requested object was not in cache, so Traffic Server retrieved the object from the origin server (or a parent proxy) and sent it to the client.
TCP_REFRESH_HIT- The object was in the cache, but it was stale. Traffic Server made an
if-modified-sincerequest to the origin server and the origin server sent a304not-modified response. Traffic Server sent the cached object to the client. TCP_REF_FAIL_HIT- The object was in the cache but was stale. Traffic Server made an
*
if-modified-sincerequest to the origin server but the server did not respond. Traffic Server sent the cached object to the client. TCP_REFRESH_MISS- The object was in the cache but was stale. Traffic Server made an
*
if-modified-sincerequest to the origin server and the server returned a new object. Traffic Server served the new object to the client. TCP_CLIENT_REFRESH- The client issued a request with a
no-cacheheader. Traffic Server obtained the requested object from the origin server and sent a copy to the client. Traffic Server deleted the previous copy of the object from cache. TCP_IMS_HIT- The client issued an
if-modified-sincerequest and the object was in cache & fresher than the IMS date, or anif-modified-sincerequest to the origin server revealed the cached object was fresh. Traffic Server served the cached object to the client. TCP_IMS_MISS- The client issued an
if-modified-since request, and the object was either not in cache or was stale in cache. Traffic Server sent an
if-modified-since requestto the origin server and received the new object. Traffic Server sent the updated object to the client. TCP_SWAPFAIL- The object was in the cache but could not be accessed. The client did not receive the object.
ERR_CLIENT_ABORT- The client disconnected before the complete object was sent.
ERR_CONNECT_FAIL- Traffic Server could not reach the origin server.
ERR_DNS_FAIL- The Domain Name Server (DNS) could not resolve the origin server name, or no DNS could be reached.
ERR_INVALID_REQ- The client HTTP request was invalid. (Traffic Server forwards requests with unknown methods to the origin server.)
ERR_READ_TIMEOUT- The origin server did not respond to Traffic Server's request within the timeout interval.
ERR_PROXY_DENIED- Client service was denied.
ERR_UNKNOWN- The client connected, but subsequently disconnected without sending a request.

