4 ms·
I searched for logfmt and found your website – https://brandur.org/logfmt https://brandur.org/logfmt What I can't find described for logfmt is how to handle es
by spearo77 7y ago
I searched for logfmt and found your website – https://brandur.org/logfmt 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.
- mirekrusin 7y agoYou could use yaml serialiser, which leaves non special strings as is and quotes special ones. But this approach can break naive grepping.