Upgrading to Varnish 6.5.0¶
varnishstat¶
The JSON output (-j
option) changed to avoid having the timestamp
field mixed with the counters fields. As such the schema version was bumped
from 0 to 1, and a version
top-level field was added to keep track of
future schema changes. Counters are in a new counters
top-level field.
Before:
{
"timestamp": "YYYY-mm-ddTHH:MM:SS",
"MGT.uptime": {
...
},
...
}
After:
{
"version": 1,
"timestamp": "YYYY-mm-ddTHH:MM:SS",
"counters": {
"MGT.uptime": {
...
},
...
}
}
The filter option -f
is now deprecated in favor of the -I
and
-X
options for field inclusions and exclusions, respectively. Tools
using varnishstat
should prepare for future removal and be changed
accordingly.
VSL¶
If you need to build VSL queries that depend on BackendReuse
you can
now rely on BackendClose
, for example:
varnishlog -q 'BackendReuse[2] ~ www'
The new query would be:
varnishlog -q 'BackendClose[2] ~ www and BackendClose[3] eq recycle'