This is my configuration:
<match *.**>
@type copy
<store>
@type cloudwatch_logs
log_group_name mygroup
log_stream_name_key mykey
auto_create_stream true
localtime false
region us-east-2
</store>
</match>
The logs are sent to CloudWatch and both log group and log stream are created in CloudWatch as expected. The only problem is periodic warnings in the td-agent.log:
2018-02-23 17:01:01 +0000 [info]: #0 flushing all buffer forcedly
2018-02-23 17:01:01 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:02:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:03:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:04:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:05:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:06:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:07:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:08:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:09:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:10:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:11:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:12:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:13:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:14:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:15:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:16:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:17:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:18:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:19:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:20:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:21:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:22:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:23:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:24:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:25:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:26:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:27:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
2018-02-23 17:28:04 +0000 [warn]: #0 stream_name is nil (group_name=mygroup)
It would be great if the warnings could be fixed. Thanks.
This is my configuration:
The logs are sent to CloudWatch and both log group and log stream are created in CloudWatch as expected. The only problem is periodic warnings in the td-agent.log:
It would be great if the warnings could be fixed. Thanks.