I am installing elasticsearch (7.4.1) , with the default “/etc/elasticsearch/elasticsearch.yml” , when I restart the service it starts and “systemctl status elasticsearch” shows it as running.
Now when I edit “/etc/elasticsearch/elasticsearch.yml” and change “network.host: 192.168.3.191” and restarting the elasticsearch the service fails, when I comment “network.host” it works
diff elasticsearch.yml elasticsearch.yml-ORG
192.168.3.191 is the IP address of the elasticsearch server, where I had installed elasticsearch
I am trying to bind the elasticsearch to the ipaddress of the elasticsearch server, why is this is failing
I have tried it in different setups, each setup the same steps followed and failes.
Guidance and advice requested to find the reason and solve it
Original install method (e.g. download page, yum, deb, from source, etc.) and version:
Fresh install or upgraded from other version?
Fresh , I have tried it in different machines different installation,
Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
Steps to reproduce:
- install elasticsearch on ubuntu 18.04, do service restart and check you will see it is working, now what you do
- comment out network.host and give the IP of the machine
- restart the service the service will fail