fluent / fluent/fluent-bit

[Feature Request] Add logfmt to decoder

Open
#1,289 3 comments 1 reaction 1 assignee Claimed by @edsiper View on GitHub
enhancement
Dominant language
C
Stars
8.1k
Forks
2k
Avg merge
4d 20h
Merged PRs (30d)
71

Description

In flb_parser_decoder.c
only support decoder: json, escaped, escaped_utf8

I need add logfmt (flb_parser_logfmt.c) to decode simple json:

`
{ "log": "a=b c=d" }
`
need get key a=>b, c=>d.
If I use parser logfmt for json string, i get in stdout:

My stdout:
`[OUTPUT]
Name stdout
Match *
Format json_lines
json_date_key time
json_date_format iso8601
`
my output:
`
{"time":"2019-04-19T16:15:04.000000Z", "{":true, "log":true, ":":true, "a":"b", "c":"d", "}":true}
`

Please help with add logfmt in decoder...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.