Excluding url's from varnishhist

Rob S rtshilston at gmail.com
Thu Oct 8 10:59:15 CEST 2009

Tollef Fog Heen wrote:
> ]] Paul Dowman 
> | Hi,
> | I'm having trouble figuring out how to exclude certain URL's from
> | varnishhist. I want to exclude static files, e.g. urls that match a pattern
> | like /\.png|\.gif|\.js|\.css|\.ico/ (because these don't cause much load on
> | the back-end, I want to see only the requests that would hit my app
> | servers).
> | 
> | I know about the -X regex argument, but it doesn't seem to do what I want.
> | Actually I don't really understand what it does, the man page says that it
> | excludes "log entries" that match a pattern, but as far as I can tell it
> | doesn't match URL's.
> | 
> | What's the right way to do this?
> There's currently no way to do this, I'm afraid.  varnishtop -b -i TxURL
> gives you the URLs, but not any timing information.
I realise it'd produce slightly different information, but you could 
create a separate backend director for files that match this regex, then 
look at varnishncsa for those particular backends...

More information about the varnish-misc mailing list