Web - Varnish Cheat Sheet
Helpful commands about Varnish Cache:
Varnish > V3
Look at an incoming client request of a specific URL:
varnishlog -c -m RxURL:"post/123.htm"
Look at a a backend request of a specific URL:
varnishlog -b -m TxURL:"post/123.htm"
See requests for one specific hostname:
varnishlog -c -m RxHeader:"Host: yauuu.me"
See the age of the cache objects for a specific hostname:
varnishlog -c -m RxHeader:"Host: yauuu.me" | grep Age
Varnish < V3
Look at an incoming client request of a specific URL:
varnishlog -c -o RxURL post/123.htm
Look at a backend request of a specific URL:
varnishlog -b -o TxURL post/123.htm
See requests for one specific hostname:
varnishlog -c -o RxHeader "Host: yauuu.me"
See the age of the cache objects for a specific hostname:
varnishlog -c -o RxHeader "Host: yauuu.me" | grep Age