I have Elasticsearch, Logstash and Kibana all running on verion 5 on CentOS 7
I'm still very new to ELK so my understanding might not be correct.
I'm trying to create an Elasticsearch cluster, so its my understanding that I need to assign each node a ip address, so these can then all be put into the config so they can share the load.
My problem is that Elasticsearch will only run on localhost, even if I change Network.host to an ip address, it cannot be accessed by browsing to it, for example 192.168.0.107:9200
This is the only log that I could find of relevence found in nginx
The status of kibana shows everthing as green.
Going to 192.168.1.107:9200 just gives me connected refused which I guess is the log above.
You need to change this setting in elasticsearch config /etc/elasticsearch/elasticsearch.yml:
network.publish_host
And set it to the ip that you want to access ES on.
Nginx?
I thought you were connecting directly to the cluster from kibana.
If you have nginix in the mix, the answer to your question may differ depending on your desired config
Then it shouldn't matter because the connection is from Kibana to elasticsearch.
Can you do a curl call to the elasticsearch server in port 9200 from the server running kibana?
At least this will tell you if your kibana machine can access elasticsearch and you can focus on kibana settings and nginx.
Another thing you may want to do first is connect to kibana directly, until it works, so you know it's not nginx messing around
At the moment they are all running on one box, once i get this elasticsearch running without localhost, I can then expand and start adding other elasticsearch nodes, knowing that they are going to be able to connect.
Still same problem
No errors in the log, kibana still says everything is ok,
There was a firewall but I opened all the ports needed 5601,80, 9200,....
I've now disabled it to try to get it working
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.