In varnish 3, I did the following to log odd errors to syslog:

        std.syslog((3*8)+5, "returning backend error page. client.ip is " +
client.ip +
               " req.xid is " + req.xid +
               " req.url is " + req.url +
               " original url is " + req.http.originalurl +
               " beresp.status is " + beresp.status);

In varnish 4, vcl_backend_error does not have access to client.* or req.*,
making this problematic at best.

The 'go to' solution seems to be an external log monitor... a daemonized
version of varnishlog which filters out stuff like this.  Certainly doable,
but this feels like a poor solution, compared with the above.

Am I missing something?

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

Reply via email to