The Balancer access log provides information about requests received at the balancer level. Since most customers use shared load balancers, Varnish logs are only available using the log stream feature and cannot be downloaded from either the Cloud Platform interface or your infrastructure.
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. You can also review information about how to streaming Varnish log entries in real time from your browser.
Parsing the log file
The following line is a representative example of the data written into your website’s balancer access log:
127.0.0.1 - - [30/Dec/2016:18:12:20 +0000] "GET /names HTTP/1.1" 200 12750 "-"
"facebookexternalhit/1.1" http_host=www.example.com affinity="-" upstream_addr="171.0.0.1:80" hosting_site=alphabeta request_time=1.263 forwarded_for="173.0.0.1, 172.0.0.1" upstream_status="200"
request_id="v-0000zzzz-cebb-0000-9948-0efda0c0zzzz" ssl_protocol="TLSv1.2" ssl_cipher="AES128-GCM-SHA256"
Each of the items in the balancer access log is noted in the following table, along with its description:
| Position | Data | Description |
|---|
| 0 | 127.0.0.1 | The IP address of the web client accessing the balancer. |
| 1 | - | The name of a remote log file, if used (- is an empty value). |
| 2 | - | The username the web client was authorized under, if used (- is an empty value). |
| 3 | [30/Dec/2016:18:12:20 +0000] | The date and time of the request. |
| 4 | GET | The method of the request—frequently GET |
Balancer access logs
The Balancer access log provides information about requests received at the balancer level. Since most customers use shared load balancers, Varnish logs are only available using the log stream feature and cannot be downloaded from either the Cloud Platform interface or your infrastructure.
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. You can also review information about how to streaming Varnish log entries in real time from your browser.
Parsing the log file
The following line is a representative example of the data written into your website’s balancer access log:
127.0.0.1 - - [30/Dec/2016:18:12:20 +0000] "GET /names HTTP/1.1" 200 12750 "-"
"facebookexternalhit/1.1" http_host=www.example.com affinity="-" upstream_addr="171.0.0.1:80" hosting_site=alphabeta request_time=1.263 forwarded_for="173.0.0.1, 172.0.0.1" upstream_status="200"
request_id="v-0000zzzz-cebb-0000-9948-0efda0c0zzzz" ssl_protocol="TLSv1.2" ssl_cipher="AES128-GCM-SHA256"
Each of the items in the balancer access log is noted in the following table, along with its description:
| Position | Data | Description |
|---|
| 0 | 127.0.0.1 | The IP address of the web client accessing the balancer. |
| 1 | - | The name of a remote log file, if used (- is an empty value). |
| 2 | - | The username the web client was authorized under, if used (- is an empty value). |
| 3 | [30/Dec/2016:18:12:20 +0000] | The date and time of the request. |
| 4 | GET | The method of the request—frequently GET |