Hello- Setting up and trying to learn ELK. I have it all set up and working on a win2016 server from localhost. I also got Kibana to work from laptop using 0.0.0.0 in the kibana.yml file.
For elasticsearch, I have tried to do the same to the same. On the Win2016 server, if I open a browser and go to http://localhost:9200, I get the correct response and it works.
If I go into elasticsearch.yml and add
network.host: 0.0.0.0
The elasticsearch service will not launch. What am I doing wrong?
These are important concepts please take a look and read
You are most likely getting this error
[2019-08-30T09:16:07,451][INFO ][o.e.b.BootstrapChecks ] [ceres] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [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
[2019-08-30T09:16:07,460][INFO ][o.e.n.Node ] [ceres] stopping ...
You can add discovery.type: single-node which you can read about here and that should let you start the node.
These are important checks as this is to make sure people are making conscious decisions about making Elasticsearch network addressable especially if they have not implemented any security... things to think about.
When you attach to 0.0.0.0 anyone that knows the endpoint can now access that instance and the data within it... until you secure it... in addition if this were part of a cluster it would need to know how to discover other nodes etc.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.