Ec2-discovery issues with Kibana host

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: ec2 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.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 but to the private IP it obviously fails unless I change the to which eventually works.

How can I keep using ec2 as instead of changing it to

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