Elasticsearch 6.0 on ubuntu 16.04 will only start if network.host is set to 192.168.0.1 and not the actual IP address bound to the adaptor or hostname in hosts file

Elasticsearch 6.0 on ubuntu 16.04 will only start if network.host is set to 192.168.0.1 and not the actual IP address bound to the adaptor or hostname in hosts file.

If I follow steps precisely here and and restart elasticsearch and then to a netstat -tulpn it is not listening on port 9200 as it should.
https://www.elastic.co/guide/en/elasticsearch/reference/2.3/modules-network.html

#network.host: 192.168.0.1
network.bind_host: 192.168.0.1
network.publish_host: 10.0.2.15
http.port: 9200

The only configuration that will work is this:
network.host: 192.168.0.1

but then it will not accept remote connections. It will only allow from connections from Kibana on the same box.

not need to mention bind host and publish host parameter.
For running Elasticsearch only need to mention network.host IP and http.port and also make sure 9200 and 9300 port should be in open state. for remote connection it is necessary to communicate with all nodes if cluster are forming in ES.
Also mention your nodes IP in discovery parameter

I figured this out. I had to set the machine to run in single-node mode and then I had to set the parameters in the elasticsearch.yml to bind the IP address to the network.host
discovery.type: single-node
network.host: 10.0.2.15

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