varnishlog

Display Varnish logs.

TLDR

Display logs in real time

$ varnishlog
copy


Only display requests to a specific domain
$ varnishlog -q 'ReqHeader eq "Host: [example.com]"'
copy


Only display POST requests
$ varnishlog -q 'ReqMethod eq "[POST]"'
copy


Only display requests to a specific path
$ varnishlog -q 'ReqURL eq "[/path]"'
copy


Only display requests to paths matching a regular expression
$ varnishlog -q 'ReqURL ~ "[regex]"'
copy

Copied to clipboard