Re: Logging for multiple sites

2008-11-26 Thread David (Kitai) Cruz
Maybe create a simple script to separate logs Every URL is logged using http://domain/uri structure. Really simple script to program. Kitai 2008/11/26 Marcus Smith [EMAIL PROTECTED]: Dear list, I currently have a machine running Varnish (2.0.2) set up in front of several different

Re: Logging for multiple sites

2008-11-26 Thread Marcus Smith
David (Kitai) Cruz wrote: Maybe create a simple script to separate logs Every URL is logged using http://domain/uri structure. Really simple script to program. So you mean set varnishncsa to output everything to one log file (or pipe), and then use something like sed or perl to split the

Re: Logging for multiple sites

2008-11-26 Thread Dag-Erling Smørgrav
Marcus Smith [EMAIL PROTECTED] writes: So you mean set varnishncsa to output everything to one log file (or pipe), and then use something like sed or perl to split the log by domain? If that's really the best way, then that's fine by me. I was just hoping there might be a way of writing to

Logging for multiple sites

2008-11-26 Thread Marcus Smith
Dear list, I currently have a machine running Varnish (2.0.2) set up in front of several different websites. I would like to be able to collect access logs for each of the different sites separately. Obviously the Apache logs for these sites will be incomplete, as varnishd will serve cache hits

Re: Logging for multiple sites

2008-11-26 Thread Marcus Smith
Dag-Erling Smørgrav wrote: Actually varnishncsa uses the same log filtering / selection code as varnishlog, which *can* select requests based on URL. Extending varnishncsa to do the same should not be too hard. Other issues with varnishncsa / varnishlog: varnishlog doesn't allow -o and -w

Re: Logging for multiple sites

2008-11-26 Thread David (Kitai) Cruz
So, if i've got 900 domains, do i have to start 900 varnishlog processes? Interesting:;-) Kitai 2008/11/26 Marcus Smith [EMAIL PROTECTED]: Dag-Erling Smørgrav wrote: Actually varnishncsa uses the same log filtering / selection code as varnishlog, which *can* select requests based on

RE: Logging for multiple sites

2008-11-26 Thread Sébastien FOUTREL
: 01.41.83.17.29 -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de David (Kitai) Cruz Envoyé : mercredi 26 novembre 2008 17:09 À : Marcus Smith Cc : varnish-misc@projects.linpro.no Objet : Re: Logging for multiple sites So, if i've got 900 domains, do i have to start

Re: Logging for multiple sites

2008-11-26 Thread Marcus Smith
Sébastien FOUTREL wrote: Hello, What about doing a massive ncsa log, then parse it for each domain with your stats software ? Or maybe splitting it in different logs in post production ? This was what Kitai suggested, and I agree that this would probably be the best way to do it in the

Re: Logging for multiple sites

2008-11-26 Thread Dag-Erling Smørgrav
Marcus Smith [EMAIL PROTECTED] writes: Well in that case, is there any reason why I shouldn't simply do something like: varnishlog -c -o RxHeader Host: (www\.)?example1\.com /path/to/logs/example1.log varnishlog -c -o RxHeader Host: (www\.)?example2\.com /path/to/logs/example2.log