<source>
@type cloudwatch
tag cloudwatch
aws_key_id XXXXXXXXXXXXXX
aws_sec_keyXXXXXXXXXXXXXXXXXX
interval 5
namespace AWS/Billing
metric_name EstimatedCharges
dimensions_name ServiceName
dimensions_value AmazonEC2
</source>
<match cloudwatch>
@type record_reformer
tag timex
<record>
test_time ${time.strftime('%Y-%m-%dT%H:%M:%S%z')}
</record>
</match>
<match timex>
@type elasticsearch
logstash_format false
host 192.168.1.36
port 9200
index_name EstimatedCostMonthtoDate
type_name metrics
</match>
logs are:
fluentd worker is now running worker=0
2017-02-23 16:41:29 +0530 [warn]: #0 cloudwatch: AWS/Billing ServiceName AmazonEC2 EstimatedCharges Average datapoints is empty
2017-02-23 16:41:36 +0530 [warn]: #0 cloudwatch: AWS/Billing ServiceName AmazonEC2 EstimatedCharges Average datapoints is empty