Ec2-discovery issues with Kibana host

Hi,
I've created a cluster of 3 ES 6.3 nodes on AWS: 2 nodes acts as master and data and 1 node serves as the coordinated server with Kibana installed.
My elasticsearch.yml is configured with the ec2-discovery:
network.host: ec2
cluster.name: elk-dev
plugin.mandatory: discovery-ec2
discovery.zen.hosts_provider: ec2
discovery.ec2.groups: sg-8e4c89f2
discovery.ec2.host_type: private_ip
discovery.ec2.tag.Cluster: default-elk-dev
discovery.ec2.availability_zones: eu-west-1a,eu-west-1b,eu-west-1c
discovery.ec2.endpoint: ec2.eu-west-1.amazonaws.com
discovery.ec2.protocol: http

When I connect to Kibana board, I can see error "unable to connect to http://localhost:9200".
Since ec2 does not resolve to 127.0.0.1 but to the private IP it obviously fails unless I change the network.host to 0.0.0.0 which eventually works.

How can I keep using ec2 as network.host instead of changing it to 0.0.0.0?

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