Skip to content

Comment on Fast and flexible observability with canonical log linesparent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.