tagomoris / fluent-plugin-parser

Other
74 stars 23 forks source link

Add option to prefix original attribute-pairs #20

Open kimor79 opened 9 years ago

kimor79 commented 9 years ago

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"
}
tagomoris commented 9 years ago

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