varnishlog -g request -q "Backend ~ 'api_nhl'"
Client and backend
varnishlog -g request -q "ReqHeader ~ 'sportsnet.ca'"
Backend only
varnishlog -b -g request -q "ReqHeader ~ 'sportsnet.ca'"
varnishlog -g request -q "ReqMethod ~ 'PUT'"
Requests where the status code is higher than 200 and the origin header matches a pattern:
varnishlog -g request -q "RespStatus> 200 and ReqHeader:Origin ~ 'foxsports.com'"
Requests to a specific backend where the request URL does or does not match a particular pattern:
varnishlog -b -g request -q 'Backend ~ "api_mlb" and BereqURL !~ "config="' | grep BereqURL