Change in elasticsearch.yml for , the service will not restart

Hi All,
Good afternoon
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 “” and restarting the elasticsearch the service fails, when I comment “” it works

diff elasticsearch.yml elasticsearch.yml-ORG 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

Joseph John

Elasticsearch version:
Browser version:
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:

  1. install elasticsearch on ubuntu 18.04, do service restart and check you will see it is working, now what you do
  2. comment out and give the IP of the machine
  3. restart the service the service will fail

Have a look at the logs. Pretty sure you have a bootstrap check error. If so,
please read

1 Like

Thanks David for the URL,
I will check and try to solve it and will update

Hi All,
Got some idea from the url and the logs
Once you change the “” the statrup procedure recognize it as a production system than development system and it do some pre-requistive check for the production environment such as
“discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] “

from the log
“[ERROR][o.e.b.Bootstrap          ] [apmserver] node validation exception
[1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured”

Now trying to see how I can override this check
Will update
Joseph John

Thanks a lot , David
It worked, I was able to over ride the production setting check
commented out


discovery.seed_hosts: ["host1", "host2"]


And it worked

Like to update, later on I had to rever back because my kibana was showing the message "Kibana server is not ready yet"
Reverted back to the default elayticsearh.yml (ie back to the development mode ) and now my clients cannot communicate to the elastisearch IPaddress:9200

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