fluent-plugin-parser icon indicating copy to clipboard operation
fluent-plugin-parser copied to clipboard

Add option to prefix original attribute-pairs

Open kimor79 opened this issue 10 years ago • 1 comments

This adds an option to prefix the existing record.

E.g., input like: {"message":"a:A b:B c:C","source":"xyz"}

with config as:

type parser
format ltsv
reserve_data yes
reserve_data_prefix @

becomes

{
  "@message":"a:A b:B c:C",
  "@source":"xyz",
  "a":"A",
  "b":"B",
  "c":"C"
}

kimor79 avatar Jan 08 '15 06:01 kimor79

Could you rebase on master HEAD, and add tests for your patch?

tagomoris avatar Jan 14 '15 07:01 tagomoris