VCL to send varnish 204s and greater than 399s logs to syslogs


#1

Hi,

How can I send varnish 204s and greater than 399s logs to syslog?

Cheers
Ferdous Shibly


#2

You can attach a condition to the logging endpoint which will only send this endpoint requests with those status codes.

The actual condition would look like:
resp.status == 204 || resp.status >= 400