Closed wills-feng closed 3 years ago
We didn't support arbitrary format on out_cloudwatch_logs just supported JSON encoded style. I've heard it for the first time.
fluent-plugin-cloudwatch-logs v0.12.0 can handle <format>
section on its configuration:
<match **>
@type cloudwatch_logs
# ... Some stuff
<format>
@type single_value
message_key message
</format>
</match>
Problem
The format is not recognized in out_cloudwatch_logs. Is there a common case to format output before sending to cloudwatch?
logs in cloudwatch: "message":"Plain logs" expected only keep value(single_value format): "Plain logs"
...
Steps to replicate
Provide example config and message
Expected Behavior or What you need to ask
...
Using Fluentd and CloudWatchLogs plugin versions
fluentd --version
ortd-agent --version
fluent-gem list
,td-agent-gem list
or your Gemfile.lock