swarm-elk icon indicating copy to clipboard operation
swarm-elk copied to clipboard

Unable to connect to Elasticsearch at http://elasticsearch:9200

Open christensen143 opened this issue 6 years ago • 2 comments

I know that this has been posted before but it was closed and I am having the same issue. I have attached a screenshot and here are the contents of my docker-composer.yml:

version: "3.3"

services:

elasticsearch: command: elasticsearch -Enetwork.host=0.0.0.0 -Ediscovery.zen.ping.unicast.hosts=elasticsearch environment: ES_JAVA_OPTS: -Xms2g -Xmx2g image: elasticsearch:5 ulimits: memlock: -1 nofile: hard: 65536 soft: 65536 nproc: 65538 volumes: - /usr/share/elasticsearch/data networks: - elk deploy: mode: replicated replicas: 1 endpoint_mode: dnsrr kibana: image: kibana:latest ports: - "5601:5601" environment: ELASTICSEARCH_URL: http://elasticsearch:9200 networks: - elk deploy: mode: replicated replicas: 1 healthcheck: test: wget -qO- http://localhost:5601 > /dev/null interval: 30s retries: 3 logstash: hostname: logstash command: sh -c "logstash -e 'input { syslog { type => syslog port => 10514 } gelf { } } output { stdout { codec => rubydebug } elasticsearch { hosts => [ "elasticsearch" ] } }'" image: logstash:alpine ports: - "10514:10514/tcp" - "10514:10514/udp" - "12201:12201/udp" networks: - elk deploy: mode: replicated replicas: 2

networks: elk: driver: overlay driver_opts: encrypted: "true" 2018-06-05 10_56_25-kibana

christensen143 avatar Jun 05 '18 15:06 christensen143

I am having the same behavior. 3-node Swarm cluster on CentOS.

jbuffin avatar Jul 02 '18 18:07 jbuffin

same here

sust4in avatar Oct 14 '18 21:10 sust4in