# Issue Running ELK stack on Docker + Aws ECS

**URL:** <https://discuss.elastic.co/t/issue-running-elk-stack-on-docker-aws-ecs/83201>\
**Category:** Logstash\
**Created:** [April 21, 2017, 12:18pm UTC](https://discuss.elastic.co/t/issue-running-elk-stack-on-docker-aws-ecs/83201 "2017-04-21T12:18:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hardik.aws](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hardik.aws/32/20638_2.png) [@hardik.aws](https://discuss.elastic.co/u/hardik.aws)\
**Post date:** [April 21, 2017, 12:18pm UTC](https://discuss.elastic.co/t/issue-running-elk-stack-on-docker-aws-ecs/83201/1 "2017-04-21T12:18:33Z")

</div>

Hello

I am having issue running docker on Amazon ECS

below is the main config file for logstash

```
input {
      http {
      	host => "0.0.0.0"
      	port => 5044
      }
    }

    output {
      elasticsearch {
        hosts => "localhost:9200"
        manage_template => false
        index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}" 
        document_type => "%{[@metadata][type]}" 
      }
    }

```

I am using t2.micro instance and my task has given 600 MB ram

in past, I was using below config file of log stash and that time it was working fine

```
input {
  beats {
    port => 5044
  }
}

output {
  elasticsearch {
    hosts => "localhost:9200"
    manage_template => false
    index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}" 
    document_type => "%{[@metadata][type]}" 
  }
}

```

When I run task with new config file it start in the ECS console but when I check docker stats it gives very strange output below is that output

```
CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
a1e055168c47 3.02% 600 MiB / 600 MiB 100.00% 1.028 kB / 948 B 34.38 GB / 327.7 kB 0
2af385f5ba94 0.10% 13.27 MiB / 995.2 MiB 1.33% 0 B / 0 B 10.13 MB / 159.7 kB 0
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 24, 2017, 8:27am UTC](https://discuss.elastic.co/t/issue-running-elk-stack-on-docker-aws-ecs/83201/2 "2017-04-24T08:27:36Z")

</div>

It's not clear what you think is strange here, nor what the problem is?

---

<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:** [May 22, 2017, 8:42am UTC](https://discuss.elastic.co/t/issue-running-elk-stack-on-docker-aws-ecs/83201/3 "2017-05-22T08:42:12Z")

</div>

Closed on May 22, 2017, 8:42am UTC

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