# Logstash not seeing elastic?

**URL:** <https://discuss.elastic.co/t/logstash-not-seeing-elastic/221069>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [February 26, 2020, 3:34pm UTC](https://discuss.elastic.co/t/logstash-not-seeing-elastic/221069 "2020-02-26T15:34:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thickathanasnika](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@thickathanasnika](https://discuss.elastic.co/u/thickathanasnika)\
**Post date:** [February 26, 2020, 3:34pm UTC](https://discuss.elastic.co/t/logstash-not-seeing-elastic/221069/1 "2020-02-26T15:34:58Z")

</div>

So I am getting this message in docker-compose...  
log1 | [2020-02-26T12:40:38,174][WARN][logstash.licensechecker.licensereader] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://elasticsearch:9200/](http://elasticsearch:9200/)", :error\_type=\>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[http://elasticsearch:9200/](http://elasticsearch:9200/)][Manticore::ResolutionFailure] elasticsearch: Name or service not known"}

I don't know docker too well but am using a docker-compose.yml file as shown below:  
version: '2.2'  
services:  
es01:  
image: [docker.elastic.co/elasticsearch/elasticsearch:7.6.0](http://docker.elastic.co/elasticsearch/elasticsearch:7.6.0)  
container\_name: es01  
environment:  
- node.name=es01  
- cluster.name=es-docker-cluster  
- discovery.seed\_hosts=es02,log01  
- cluster.initial\_master\_nodes=es01,es02  
- "ES\_JAVA\_OPTS=-Xms512m -Xmx512m"  
volumes:  
- data01:/usr/share/elasticsearch/data  
ports:  
- 9200:9200  
networks:  
- elastic

es02:  
image: [docker.elastic.co/elasticsearch/elasticsearch:7.6.0](http://docker.elastic.co/elasticsearch/elasticsearch:7.6.0)  
container\_name: es02  
environment:  
- node.name=es02  
- cluster.name=es-docker-cluster  
- discovery.seed\_hosts=es01,log01  
- cluster.initial\_master\_nodes=es01,es02  
- "ES\_JAVA\_OPTS=-Xms512m -Xmx512m"  
volumes:  
- data02:/usr/share/elasticsearch/data  
ports:  
- 9201:9201  
networks:  
- elastic

kib01:  
image: [docker.elastic.co/kibana/kibana:7.6.0](http://docker.elastic.co/kibana/kibana:7.6.0)  
container\_name: kib01  
ports:  
- 5601:5601  
environment:  
ELASTICSEARCH\_URL: [http://es01:9200](http://es01:9200)  
ELASTICSEARCH\_HOSTS: [http://es01:9200](http://es01:9200)  
networks:  
- elastic

log1:  
image: [docker.elastic.co/logstash/logstash:7.6.0](http://docker.elastic.co/logstash/logstash:7.6.0)  
container\_name: log1  
environment:  
- cluster.initial\_master\_nodes=es01,es02  
ELASTICSEARCH\_URL: [http://es01:9200](http://es01:9200)  
ELASTICSEARCH\_HOSTS: [http://es01:9200](http://es01:9200)  
volumes:  
- data03:/usr/share/elasticsearch/data  
networks:  
- elastic

volumes:  
data01:  
driver: local  
data02:  
driver: local  
data03:  
driver: local

networks:  
elastic:  
driver: bridge

Most of this is taken directly from the help documentation. Could anyone shed any light or have any tips to get this working?

---

<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:** [March 25, 2020, 3:35pm UTC](https://discuss.elastic.co/t/logstash-not-seeing-elastic/221069/2 "2020-03-25T15:35:02Z")

</div>

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