Numeric variables default to -


I’m trying to log as json, starting from GitHub - salimchehab/terraform-aws-haproxy-cloudwatch-log-format-json: Setup CloudWatch Log Groups and Metric Filters for HAProxy logs (adjusted to JSON output format). with friendlier variable names.
These sequences:
for example, will produce something like this:
if a DENY rule is matched (termination state PR–). This is not valid json, specifically these two:
Now %bp and %sp are supposed to be numeric, so they should default to a number, like -1, or the - should be quoted.
Not sure if that’s something achievable with a smart log-format pattern, or a little improvement is needed in the source code.


Timing values default to -1, would be good if port numbers had the same convention.