<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.3">
</HEAD>
<BODY>
Hi guys<BR>
<BR>
I'm fairly new to Varnish and it's goodness and not that brilliant a sysadmin (I'm a developer, really) and I have some questions about how to go about setting up Varnish in a virtual hosting environment. <BR>
<BR>
I've had a lot of trouble combining the technologies I use for non-proxied hosting with Varnish and what I'd like to do is start a thread to get other people's experiences then combined all this into a bit of documentation for the wiki.<BR>
<BR>
So first, when I host a website in Apache, I use it's log piping capability to parse the output of its access logs for each virtual host through Cronolog, so that we can have one log file per day, organised in folders of hostname/year/month. We then chuck all this data at awstats to generate traffic logs based on this data.<BR>
<BR>
When I was trying to set this up to work with varnish, I ran into a couple of problems:<BR>
<BR>
1. There didn't seem to be a way to seperate out log data for each virtual host using varnishncsa.<BR>
<BR>
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.<BR>
<BR>
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).<BR>
<BR>
I've read the respective man pages for all of the various applications several times and couldn't find a clear solution, so if anyone on this list has been through something similar, or has any ideas on the subject, please contribute them and I'll write the whole thing up as a kind of how-to.<BR>
<BR>
Thanks,<BR>
<BR>
Justin<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
--
Redwire Design Limited
54 Maltings Place
169 Tower Bridge Road
London SE1 3LJ
<A HREF="http://www.redwiredesign.com">www.redwiredesign.com</A>
[ 020 7403 1444 ] - voice
[ 020 7378 8711 ] - fax
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>