Practicalweb Ltd

Technical information on this site may be out of date : no updates since 2015

Varnish logs twice

October 5 2010 : posted under linux varnish

The default configuration of varnish logs every request twice, once for the client and once for the backend communication

edit the line in /etc/init.d/varnishncsa to something like

DAEMON_OPTS="-c -a -w $logfile -D -P $pidfile"

from the varnishncsa man page

-c Include log entries which result from communication with a client. If neither -b nor -c is specified, varnishncsa acts as if they both were.