# Problem with Cloudwatch Input Login for ECS Namespace

**URL:** <https://discuss.elastic.co/t/problem-with-cloudwatch-input-login-for-ecs-namespace/192629>\
**Category:** Logstash\
**Created:** [July 29, 2019, 7:54am UTC](https://discuss.elastic.co/t/problem-with-cloudwatch-input-login-for-ecs-namespace/192629 "2019-07-29T07:54:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SammyJumpstart23](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@SammyJumpstart23](https://discuss.elastic.co/u/SammyJumpstart23)\
**Post date:** [July 29, 2019, 7:54am UTC](https://discuss.elastic.co/t/problem-with-cloudwatch-input-login-for-ecs-namespace/192629/1 "2019-07-29T07:54:48Z")

</div>

Hello!

I've been trying to poll for Cloudwatch metrics from AWS ECS Fargate to our Elastic Cloud to have everything centralized in terms of alerting and monitoring. However, with the current configuration, no indices are being created in Elasticsearch. Please see config below:

```
input {
    cloudwatch {
        namespace => "AWS/ECS"
        metrics => ["CPUUtilization", "MemoryUtilization"]
        filters => {"ClusterName" => "main-cluster"}
        period => 60
        region => "ap-southeast-1"
    }
    cloudwatch {
        namespace => "AWS/ECS"
        metrics => ["CPUUtilization", "MemoryUtilization"]
        filters => {"ClusterName" => "services-cluster"}
        period => 60
        region => "ap-southeast-1"
    }
}
filter {
}
output {
    elasticsearch {
        hosts => ["<ES_CLOUD_URL>"]
        index => "cloudwatch-metrics-%{+YYYY.MM.dd}"
        user => "user"
        password => "pass"
    }
    stdout {}
}

```

There are no errors shown in Logstash as well. The logs say only this:

```
[2019-07-29T07:51:35,004][INFO][logstash.inputs.cloudwatch] Polling CloudWatch API
[2019-07-29T07:51:35,032][INFO][logstash.inputs.cloudwatch] Polling CloudWatch API
[2019-07-29T07:51:35,038][INFO][logstash.inputs.cloudwatch] [Aws::CloudWatch::Client 200 0.031198 0 retries] get_metric_statistics(namespace:"AWS/ECS",metric_name:"MemoryUtilization",start_time:2019-07-29 07:36:35 UTC,end_time:2019-07-29 07:51:35 UTC,period:60,statistics:["SampleCount","Average","Minimum","Maximum","Sum"],dimensions:[{name:"ClusterName",value:"[FILTERED]"}])

[2019-07-29T07:51:35,053][INFO][logstash.inputs.cloudwatch] [Aws::CloudWatch::Client 200 0.018497 0 retries] get_metric_statistics(namespace:"AWS/ECS",metric_name:"CPUUtilization",start_time:2019-07-29 07:36:35 UTC,end_time:2019-07-29 07:51:35 UTC,period:60,statistics:["SampleCount","Average","Minimum","Maximum","Sum"],dimensions:[{name:"ClusterName",value:"[FILTERED]"}])

[2019-07-29T07:51:35,074][INFO][logstash.inputs.cloudwatch] [Aws::CloudWatch::Client 200 0.01739 0 retries] get_metric_statistics(namespace:"AWS/ECS",metric_name:"MemoryUtilization",start_time:2019-07-29 07:36:35 UTC,end_time:2019-07-29 07:51:35 UTC,period:60,statistics:["SampleCount","Average","Minimum","Maximum","Sum"],dimensions:[{name:"ClusterName",value:"[FILTERED]"}])

[2019-07-29T07:51:35,082][INFO][logstash.inputs.cloudwatch] [Aws::CloudWatch::Client 200 0.034519 0 retries] get_metric_statistics(namespace:"AWS/ECS",metric_name:"CPUUtilization",start_time:2019-07-29 07:36:35 UTC,end_time:2019-07-29 07:51:35 UTC,period:60,statistics:["SampleCount","Average","Minimum","Maximum","Sum"],dimensions:[{name:"ClusterName",value:"[FILTERED]"}])

```

Any advise is greatly appreciated!

---

<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:** [August 26, 2019, 7:54am UTC](https://discuss.elastic.co/t/problem-with-cloudwatch-input-login-for-ecs-namespace/192629/2 "2019-08-26T07:54:55Z")

</div>

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