fluent-plugins-nursery / fluent-plugin-cloudwatch-logs

CloudWatch Logs Plugin for Fluentd
MIT License
201 stars 141 forks source link

Skip to send empty message #178

Closed cosmo0920 closed 4 years ago

cosmo0920 commented 4 years ago

Otherwise, the following error is occurred in out_cloudwatch_logs:

Fixes https://github.com/fluent-plugins-nursery/fluent-plugin-cloudwatch-logs/issues/140.

rb:15:in `call': 1 validation error detected: Value '' at 'logEvents.1.member.message' failed to satisfy constraint: Member must have length greater than or equal to 1 (Aws::CloudWatchLogs::Errors::InvalidParameterException)
2020-03-18 18:09:59 +0900 [warn]: #0 failed to flush the buffer. retry_time=0 next_retry_seconds=2020-03-18 18:10:00 +0900 chunk="5a11d6a88b7ef7879c4bb2d3b8bf85f0" error_class=Aws::CloudWatchLogs::Errors::InvalidParameterException error="1 validation error detected: Value '' at 'logEvents.1.member.message' failed to satisfy constraint: Member must have length greater than or equal to 1"

Signed-off-by: Hiroshi Hatake hatake@clear-code.com