Varnish and virtual hosting

Dag-Erling Smørgrav des at des.no
Fri Feb 13 14:05:43 CET 2009


Justin Finkelstein <justin at redwiredesign.com> writes:
>     1. There didn't seem to be a way to seperate out log data for each
> virtual host using varnishncsa.

Correct.  This has been discussed in the past, search the list archives.

>     2. There doesn't seem to be a way to get log data out of varnish in
> a 'live' fashion or in a historical way; meaning (from my view) that if
> the server crashes of varnish fails, I have to do some work to get the
> log data out.

Wrong.  Read the varnishlog and varnishncsa man pages.

>     3. There doesn't seem to be a way to process live varnishncsa data
> via a pipe. If this were possible, then I think I would find this whole
> process a lot easier. Instead, it seems there are two options: to
> historically dump log data via an option, or run as a daemon and send
> output to a file (which cannot be via a pipe).

Wrong.  Both varnishlog and varnishncsa will, by default, process live
data and print it to stdout, where you can pipe it to whatever you like.

DES
-- 
Dag-Erling Smørgrav - des at des.no



More information about the varnish-misc mailing list