Avoiding "(null)" in log output for unset VCL variable
In my log format string, I am using a VCL variable like resp.http.X-Foo
. If that header is not set, (null)
is output. To make parsing easier, I’d prefer if an empty string were output instead. Is that possible?
-
I just came across the
if()
Fastly VCL extension. Could that be used here?https://docs.fastly.com/guides/vcl/miscellaneous-VCL-extensions#if
Please sign in to leave a comment.
Comments
2 comments