Comment on Fast and flexible observability with canonical log linesparentComments−spearo777yI searched for logfmt and found your website – https://brandur.org/logfmtWhat I can't find described for logfmt is how to handle escaping special characters in the keys or values. Specifically the quotes and equals.JSON defines this very well, but Splunk simple key=value logging formats suffer from escaping and parsing problems.−mirekrusin7yYou could use yaml serialiser, which leaves non special strings as is and quotes special ones. But this approach can break naive grepping.
Comments
I searched for logfmt and found your website – https://brandur.org/logfmt
What I can't find described for logfmt is how to handle escaping special characters in the keys or values. Specifically the quotes and equals.
JSON defines this very well, but Splunk simple key=value logging formats suffer from escaping and parsing problems.
You could use yaml serialiser, which leaves non special strings as is and quotes special ones. But this approach can break naive grepping.