I am using the %CONNECTION_TERMINATION_DETAILS% access log command operator for holding a Message variable with connection termination details in json_format access log (like below).
When there is no termination happening, the value emitted by this is null in the logs. Instead of null can I have it emit an empty string? As I have logging requirements for values to be either empty strings or 0 for integers when the value is not available.
access_log:
- name: envoy.access_loggers.stdout
typed_config:
"@type":
type.googleapis.com/envoy.extensions.access_loggers.stream.v3.StdoutAccessLog log_format:
json_format:
ApplicationProtocol: "%REQ(:SCHEME)%"
Message: "%CONNECTION_TERMINATION_DETAILS%"
Thanks!!