vanilla / fluent-plugin-burrow

This plugin for Fluentd allows to extract a single key from an existing record and re-parse it with a supplied format.
MIT License
16 stars 6 forks source link

Numeric time stamp causes time_key parsing to fail #3

Open raoul189 opened 9 years ago

raoul189 commented 9 years ago

If time_stamp is declared for a particular field in the JSON, and the field is an integer e.g. {"ts":1435527344}, and the time_format is declared as %s, the burrow plugin passes the values to the fluent parser but the fluent parser fails:

time_key ts time_format %s

error_class=Fluent::ParserError error="value must be string: 1435527344"

The integer should be processed as a valid strftime epoch time stamp similar to: % date -u --date=@1435527344 Sun Jun 28 21:35:44 UTC 2015

burrow may need to change the type in case of integer time stamps before submitting.

Thank you!

artem-kosenko commented 3 years ago

+1 the same issue. Json can not be parsed because of this.