November 2, 2012

Varnish Cheat Sheet

Thanks to John McLear, I stole this off his blog ๐Ÿ™‚

Varnish 3

Look at an incoming client request of a specific URL:

varnishlog -c -m RxURL:"readysetlearn/readysetlearn.htm"

Look at a a backend request of a specific URL:

varnishlog -b -m TxURL:"readysetlearn/readysetlearn.htm"

See requests for one specific Hostname:

varnishlog -c -m RxHeader:"Host: etherpad.org"

See the age of the cache objects for a specific hostname:

varnishlog -c -m RxHeader:"Host: etherpad.org" | grep Age

Varnish < V3

Look at an incoming client request of a specific URL:

varnishlog -c -o RxURL readysetlearn/readysetlearn.htm

Look at a a backend request of a specific URL:

varnishlog -b -o TxURL readysetlearn/readysetlearn.htm

See requests for one specific Hostname:

varnishlog -c -o RxHeader "Host: etherpad.org"

See the age of the cache objects for a specific hostname:

varnishlog -c -o RxHeader "Host: etherpad.org" | grep Age

Leave a Reply

Your email address will not be published. Required fields are marked *

css.php