This document discusses HTTP logging and Varnish log formats. It provides examples of Varnish log output showing request information like IP address, request method, URL, status code, timestamp and more. It also covers Varnish log filtering techniques like grouping transactions, including/excluding tags, and using Varnishlog queries.
38. vsl_space
Value is: 80M [bytes] (default)
Minimum is: 1M
Maximum is: 4G
The amount of space to allocate for the VSL fifo buffer in the
VSM memory segment. If you make this too small,
varnish{ncsa|log} etc will not be able to keep up. Making it
too large just costs memory resources.
NB: This parameter will not take any effect until the child
process has been restarted.
80. %s: %f %f %f
| | | |
| | | +- Time since last timestamp
| | +---- Time since start of work unit
| +------- Absolute time of event
+----------- Event label
TIMESTAMP FORMOAT
103. %b Size of the response body in bytes
%D Time taken to serve the request in microseconds
%H The request protocol
%h The hostname or IP address of the remote host
%I Total bytes received
%{X}i Contents of request header X
%l Remote log name
%m Request method
%{X}o Contents of response header X
%O In client mode, total bytes sent to client. In backend mode, total bytes received from the backend
%q The query string
%r First line of the HTTP request composed using other formatters
%s HTTP status code of the response
%t Time when the request was received
%{X}t Time when request was received in the strftime time specification format
%T Time taken to serve the request
%U Request URL without query string
%u Remote authenticated user
%{X}x Extended Varnish & VCL variables