You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use a file/s3 output as a <secondary> if sending events to Kinesis is failing. But the way the plugin formats incoming events makes its harder to read from a secondary file or S3
Original message (json) -
{"test":"this is a test message", "message_id":"1234"}
{"test":"this is a test message", "message_id":"123456"}
{"test":"this is a test message", "message_id":"456789"}
Message in secondary output (file or S3) -
36cbd167849700a041b3bd691b014937íƒì{"test":"this is a test message", "message_id":"1234"}Ÿ c762173994c445b6927e569fa0821e6fíƒî{"test":"this is a test message", "message_id":"123456"}Ÿ 3cb59c12b2209ec3728795c6c58af6abíƒì{"test":"this is a test message", "message_id":"456789"}Ÿ
This is because of the format method implementation which adds a Hex of the event as the partition key
Would it make sense to just format the message with the configured formatter in the format method and calculate the hex in the write method? That way secondary outputs can keep the desired formatting.
Environment -
td-agent3 running in a Ubuntu 14.04 container
fluent-plugin-kinesis-2.1.1
I'm trying to use a file/s3 output as a
<secondary>
if sending events to Kinesis is failing. But the way the plugin formats incoming events makes its harder to read from a secondary file or S3Original message (json) -
Message in secondary output (file or S3) -
This is because of the
format
method implementation which adds a Hex of the event as the partition keyhttps://github.com/awslabs/aws-fluent-plugin-kinesis/blob/master/lib/fluent/plugin/out_kinesis_streams.rb#L39
Would it make sense to just format the message with the configured formatter in the
format
method and calculate the hex in thewrite
method? That way secondary outputs can keep the desired formatting.Environment -
td-agent3 running in a Ubuntu 14.04 container
fluent-plugin-kinesis-2.1.1
config -
The text was updated successfully, but these errors were encountered: