Issue Running ELK stack on Docker + Aws ECS

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

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

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