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

Actual record overridden after parsing

Open kumaravel29 opened this issue 6 years ago • 1 comments

In the fluentd input, I am using a parser in the syslog input plugin to break the messages using regular expression. After the separation, I am trying to parse one of the field again using the multi-format-parser.

Output after input plugin - {"field1":"abc", "field2":"xyz", "message":"{"field3":"def", "field4":"ghi"}"} Output after multi-format-parser - {"field3":"def", "field4":"ghi"}

Is there a way to retain the actual fields also.

kumaravel29 avatar Jun 01 '18 12:06 kumaravel29

If you use filter_parser plugin, consider https://docs.fluentd.org/v1.0/articles/filter_parser#reserve_data

repeatedly avatar Jun 01 '18 17:06 repeatedly