Extract Configuration From a Running Varnish Instance

varnish

Is there a way to extract a vcl configuration file from a running instance of varnish?

That is, I'm debugging varnish on a system I haven't been involved with up until now. There's a lot of confusion from the system owners as to which varnish configuration files have been used to restart and refresh the server. It would be extremely helpful for me to be able to see what VCL configuration file the currently running varnish instance is using. Not the file path (as people are editing these files at will), but the actual contents of the file at the time of varnish's last restart/refresh.

Best Answer

In your case, I think your best shot would be the command varnishadm vcl.show boot (replace boot by active configuration's name, see varnishadm vcl.list output).

Related Topic