# Logstash on Fargate - Cannot assign requested address

**URL:** <https://discuss.elastic.co/t/logstash-on-fargate-cannot-assign-requested-address/202589>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [October 7, 2019, 8:15pm UTC](https://discuss.elastic.co/t/logstash-on-fargate-cannot-assign-requested-address/202589 "2019-10-07T20:15:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davewolf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davewolf/32/55500_2.png) [@davewolf](https://discuss.elastic.co/u/davewolf)\
**Post date:** [October 7, 2019, 8:15pm UTC](https://discuss.elastic.co/t/logstash-on-fargate-cannot-assign-requested-address/202589/1 "2019-10-07T20:15:32Z")

</div>

- Version: 7.4.0
- Deployment: AWS ECS Fargate

I'm getting this error:  
EADDRNOTAVAIL: Cannot assign requested address - bind - Cannot assign requested address

Since I'm deploying to Fargate, I can't in advance know (or even determine) what the host's IP address will be. It appears from a variety of topics, that people have figured this out, unfortunately, I'm not seeing a solution in any of them.

# Logstash.yml

http.host: ""  
http.port: 9600

xpack.monitoring.enabled: true  
xpack.monitoring.elasticsearch.hosts: ["[https://72298998827d49a3921c2b7060be2394.us-west-2.aws.found.io:9243](https://72298998827d49a3921c2b7060be2394.us-west-2.aws.found.io:9243)" ]  
xpack.monitoring.elasticsearch.username: logstash\_application\_user  
xpack.monitoring.elasticsearch.password: ${es\_password}

xpack.management.enabled: true  
xpack.management.pipeline.id: ["rawlogs"]  
xpack.management.elasticsearch.hosts: ["[https://72298998827d49a3921c2b7060be2394.us-west-2.aws.found.io:9243](https://72298998827d49a3921c2b7060be2394.us-west-2.aws.found.io:9243)" ]  
xpack.management.elasticsearch.username: logstash\_admin\_user  
xpack.management.elasticsearch.password: ${logstash\_admin}  
xpack.management.logstash.poll\_interval: 5s

# Dockerfile:

FROM [docker.elastic.co/logstash/logstash:7.4.0](http://docker.elastic.co/logstash/logstash:7.4.0)

RUN rm -f /usr/share/logstash/pipeline/logstash.conf  
ADD pipeline/ /usr/share/logstash/pipeline/  
ADD config/ /usr/share/logstash/config/

---

<div class="post-metadata">

**Author:** ![davewolf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davewolf/32/55500_2.png) [@davewolf](https://discuss.elastic.co/u/davewolf)\
**Post date:** [October 8, 2019, 7:12pm UTC](https://discuss.elastic.co/t/logstash-on-fargate-cannot-assign-requested-address/202589/2 "2019-10-08T19:12:57Z")

</div>

It appears that my issue was specifying the Elastic IP assigned to the network load balancer, instead of the docker default of "0.0.0.0".

The topic's error is gone, but the application is still being shutdown, without any apparent cause.

---

<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:** [November 5, 2019, 7:13pm UTC](https://discuss.elastic.co/t/logstash-on-fargate-cannot-assign-requested-address/202589/3 "2019-11-05T19:13:02Z")

</div>

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