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 Acquia Cloud interface or your servers.
For a list of the log files handled by Acquia Cloud, including accessing these log files, log file retention, and their locations, see About Acquia Cloud 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="188.8.131.52:80" hosting_site=alphabeta request_time=1.263 forwarded_for="184.108.40.206, 220.127.116.11" 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:
||The IP address of the web client accessing the balancer|
||The name of a remote log file, if used (
||The username the web client was authorized under, if used (
||The date and time of the request|
||The method of the request — frequently
||The document requested, relative to the docroot of the website|
||TheHTTP protocol used for the request|
||The HTTP status code returned by the balancer — note that it may differ from the HTTP status code returned by the backend server the request was forwarded to|
||Size, in bytes, of the server's response|
||The referrer URL, if any (
||The user-agent of the request|
||The requested domain name|
||The backend server this request was pinned to, if any (
||The backend server the balancer forwarded this request to|
||The internal Acquia site name this request is for|
||Time in seconds needed to complete this request|
||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:
||The HTTP status code returned by the backend server the request was forwarded to — note that it may differ from the HTTP status code returned by the balancer|
||A unique ID attached to this request by the load balancer, which appears in several Acquia Cloud log files — for more information, see Using HTTP request IDs|
||The SSL protocol used for this request, if any|
||The SSL cipher used for this request, if any|