Jump to content

User:Ema/Varnishlog

From Wikitech

Varnish 4

Non-PURGE requests:

 varnishlog -n frontend -q 'not ReqMethod eq PURGE'

50x responses:

 varnishncsa -n frontend -q 'RespStatus ~ 50'

Varnish 3

Non-PURGE requests:

 varnishlog -n frontend -m 'RxRequest:^(?!PURGE$)'

50x responses:

 varnishncsa -n frontend -m TxStatus:50