Varnish log commands

Spread the love

Varnish log save into log file:
sudo varnishlog -cw access.log

Varnish log read:
varnishlog -r access.log

View user-agent in realtime :
varnishtop -C -I ReqHeader:User-Agent

View user ip in realtime:
varnishtop -C -I ReqHeader:X-real-ip

View request URL in realtime:
varnishtop -C -I ReqURL

View request detail information filtered by specific URL:
varnishlog -q “ReqURL ~ ‘^/directory'”

Facebook Comments

Published by

Titus Choi

I love technology. Working for information technology. Interested in AVR technology. Playing with RC stuff.