# Unable to fetch metrics from AWS/ECS - Cloudwatch input plugin

**URL:** <https://discuss.elastic.co/t/unable-to-fetch-metrics-from-aws-ecs-cloudwatch-input-plugin/200477>\
**Category:** Logstash\
**Created:** [September 20, 2019, 7:10pm UTC](https://discuss.elastic.co/t/unable-to-fetch-metrics-from-aws-ecs-cloudwatch-input-plugin/200477 "2019-09-20T19:10:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arpan\_Patnaik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arpan_patnaik/32/50010_2.png) [@Arpan\_Patnaik](https://discuss.elastic.co/u/Arpan_Patnaik)\
**Post date:** [September 20, 2019, 7:10pm UTC](https://discuss.elastic.co/t/unable-to-fetch-metrics-from-aws-ecs-cloudwatch-input-plugin/200477/1 "2019-09-20T19:10:53Z")

</div>

Hi All,

I have been trying to get the cloudwatch input plugin working with the AWS/ECS metrics, but I have been unable to get any data out. There are strangely no errors, but no data is picked up my the plugin either. PFB my configuration file

```
input {
    cloudwatch {
        namespace => "AWS/EC2"
        metrics => ["CPUUtilization", "DiskReadOps", "DiskWriteOps", "DiskReadBytes", "DiskWriteBytes", "NetworkIn", "NetworkOut"]
        region => "us-east-1"
        role_arn => "XXXXXXXXXXXXXXXXXXXXXXXX"
        interval => 300
        period => 60
    }
    cloudwatch {
        namespace => "AWS/ECS"
        metrics => ["CPUUtilization", "MemoryUtilization"]
        filters => { ClusterName => Common ServiceName => AppName}
        statistics => ["Average"]
        region => "us-east-1"
        role_arn => "XXXXXXXXXXXXXXXXXXXXXXX"
        interval => 600
        period => 300
    }
}

output {
    elasticsearch {
        hosts => ["http://X.X.X.X:9200"]
        sniffing => false
        index => "testing-%{+YYYY-MM-dd}"
    }
    stdout { codec => rubydebug }
}

```

I get the EC2 metrics and can see the data make it to Kibana, but not for the ECS. I have double checked the filters. and they are accurate as well.

`[INFO] 2019-09-20 18:34:28.584 [[main]<cloudwatch] cloudwatch - [Aws::CloudWatch::Client 200 15.580492 1 retries] get_metric_statistics(namespace:"AWS/ECS",metric_name:"CPUUtilization",start_time:2019-09-20 18:24:13 UTC,end_time:2019-09-20 18:34:13 UTC,period:300,statistics:["Average"],dimensions:[{name:"ClusterName",value:"[FILTERED]"}])`

Is there anything that I am missing in the configuration?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 18, 2019, 7:10pm UTC](https://discuss.elastic.co/t/unable-to-fetch-metrics-from-aws-ecs-cloudwatch-input-plugin/200477/2 "2019-10-18T19:10:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
