Where can i find varnish log files? /var/log/varnish is empty

loggingvarnish

I'm trying to read log files of Varnish server in Ubuntu environment.

I actually never used Varnish before.

so…I cd to /var/log/varnish, but the folder is empty.

it tells me that I have to configure my varnish server to save logs…is that true?

Best Answer

by default varnish will not log anywhere.. you have to run a command to get it to show logs

You can run the command

varnishncsa

For more info on how to use that command to write to a log instead of stdout

http://www.go2linux.org/linux/2011/05/configure-varnish-logs-varnishnsca-logrotate-and-awstats-1014

Related Topic