Open dtmistry opened 5 years ago
facing the same issue too with https://docs.fluentd.org/output#secondary-output
where my logs look like
�={"key":"value"}�$3544c5eb-6536-11eb-8db1-0ea64c53eca3
3544c5eb-6536-11eb-8db1-0ea64c53eca3
is partition key
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 -