Varnish® request logs are available only to subscriptions using dedicated balancers, with the logs accessed through the Log Forwarding feature. Varnish logs cannot be downloaded from the Cloud Platform user interface or infrastructure. Varnish logs forwarded through the Log Forwarding feature display in the JSON format. Subscriptions using shared load balancers do not have access to this feature and therefore, cannot access these logs.
All subscriptions using either dedicated or shared load balancers can stream Varnish log entries in real time through the Log Streaming feature.
For a list of the log files handled by Cloud Platform, including accessing these log files, log file retention, and their locations, see About Cloud Platform logging.
The forwarded Varnish logs in the JSON format do not contain the query field.
Parsing the log file
The following line is a representative example of the data written into your website’s Varnish request log, with line breaks included for ease of reading:
Each of the items in the Varnish request log is noted in the following table, along with its description:
Key
Value
time
The date and time of the request in HTTP date/time format (%d/%b/%Y:%T%z).
status
The HTTP status sent to the client. Production environments don’t display full information for HTTP 5xx status codes.
Varnish request logs
Varnish® request logs are available only to subscriptions using dedicated balancers, with the logs accessed through the Log Forwarding feature. Varnish logs cannot be downloaded from the Cloud Platform user interface or infrastructure. Varnish logs forwarded through the Log Forwarding feature display in the JSON format. Subscriptions using shared load balancers do not have access to this feature and therefore, cannot access these logs.
All subscriptions using either dedicated or shared load balancers can stream Varnish log entries in real time through the Log Streaming feature.
For a list of the log files handled by Cloud Platform, including accessing these log files, log file retention, and their locations, see About Cloud Platform logging.
The forwarded Varnish logs in the JSON format do not contain the query field.
Parsing the log file
The following line is a representative example of the data written into your website’s Varnish request log, with line breaks included for ease of reading:
Each of the items in the Varnish request log is noted in the following table, along with its description:
Key
Value
time
The date and time of the request in HTTP date/time format (%d/%b/%Y:%T%z).
status
The HTTP status sent to the client. Production environments don’t display full information for HTTP 5xx status codes.
bytes
The size of the response in bytes, excluding HTTP headers.
method
The method of the request (usually GET or POST).
host
The host name of the request.
url
The full path of the requested file.
referrer
The referrer for this request, if any.
user_agent
The full user-agent for this request.
client_ip
The originating IP address of the request.
time_firstbyte
Time from when the request processing starts until the first byte is sent to the client, in seconds.
hitmiss
Whether the request was a cache HIT or MISS. PIPE and PASS are considered misses.
handling
How the request was handled: cache HIT, MISS, PIPE, PASS or ERROR.
forwarded_for
The full set of IP addresses tracked as “requester IP,” which will contain the IP addresses of the following if they are in use by the subscription:
Load balancer
ELB (Elastic Load Balancer)
Content Delivery Networks or Web Application Firewalls (WAFs) such as Edge)
request_id
A unique ID attached to this request by the load balancer, which appears in several Cloud Platform log files. For more information, see Using HTTP request IDs.
ah_log
Log name identifier. Not required, and not always set.
ah_application_id
The UUID (Universal Unique Identifier) of the application serving this request.
ah_environment
The name of the Cloud Platform environment serving this request.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
bytes
The size of the response in bytes, excluding HTTP headers.
method
The method of the request (usually GET or POST).
host
The host name of the request.
url
The full path of the requested file.
referrer
The referrer for this request, if any.
user_agent
The full user-agent for this request.
client_ip
The originating IP address of the request.
time_firstbyte
Time from when the request processing starts until the first byte is sent to the client, in seconds.
hitmiss
Whether the request was a cache HIT or MISS. PIPE and PASS are considered misses.
handling
How the request was handled: cache HIT, MISS, PIPE, PASS or ERROR.
forwarded_for
The full set of IP addresses tracked as “requester IP,” which will contain the IP addresses of the following if they are in use by the subscription:
Load balancer
ELB (Elastic Load Balancer)
Content Delivery Networks or Web Application Firewalls (WAFs) such as Edge)
request_id
A unique ID attached to this request by the load balancer, which appears in several Cloud Platform log files. For more information, see Using HTTP request IDs.
ah_log
Log name identifier. Not required, and not always set.
ah_application_id
The UUID (Universal Unique Identifier) of the application serving this request.
ah_environment
The name of the Cloud Platform environment serving this request.