hello there ;)

since putting varnish version 5 in front of my apache backend the apache access logs don't fill up and webalizer has no data to process.

I know that I can use varnishncsa to create logs in apache format.

but since I'm using multiple domains I would need logs per domain.
I see that there's the -q <query> option

I found stuff by google like:

varnishncsa -m "RxHeader:^Host: www.domain1.com$" -a -w /var/log/varnish/www.domain1.com -D

but I see that the -m param is no longer available in version 5?

how could i use that -q <query> param so varnishncsa would produce different logs for different domains?

would a regex query on the host like below be possible?

varnishncsa -q "ReqHost ~ '^mydomain.com$' " -a -w /var/log/varnish/mydomain.com -D varnishncsa -q "ReqHost ~ '^myotherdomain.com$' " -a -w /var/log/varnish/myotherdomain.com -D

where can I find a list of variables I can use in the vsl-query language?
a RTFM with the proper link would be perfect ;)

thanks & greetings
becki

_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to