Connect ES and KB

I have setup elasticsearch on one separate server and Logstatsh & Kibana (Both) on one server.
1st server- ES
2nd server- Logstatsh and kibana

I have added Elasticsearch.yml
network.host: 0.0.0.0
and
kibana.yml
server.host: "0.0.0.0"
elasticsearch.url: "http://<ES_Public_IP>:9200"

and the problem is my kibana not conneting to elasticsearch
How can I connet elsaticseach to kibana and logstatsh?

Please check your networking information .
You can get clarity here :

If issue still persists please share your logstash conf details too

What do you see if you put the above URL in your web browser?

Can you access it from the machine running Kibana? Try

curl http://<ES_Public_IP>:9200
nc -n -z <ES_Public_IP> 9200

No, I am not able to access ES url from browser and kibana server.

The Kibana can not connect either...

Is ES definitely running? Can you connect to ES locally on the machine where ES runs? Try the same commands with both local and public IP.

Yes elasticsearch service is runing.

#service elasticsearch status

● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
Active: active (running)
Docs: http://www.elastic.co
Main PID: 15133 (java)
CGroup: /system.slice/elasticsearch.service
└─15133 /usr/bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.e

From ES server
#curl -X GET "ES_IP:9200/"
{
"name" : "qjnBFw1",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "3xWjQ4qyR6OqVlGbg0t70Q",
"version" : {
"number" : "6.2.4",
"build_hash" : "ccec39f",
"build_date" : "2018-04-12T20:37:28.497551Z",
"build_snapshot" : false,
"lucene_version" : "7.2.1",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}

#netstat -antp | grep 9200 
tcp        0      0 0.0.0.0:9200            0.0.0.0:*               LISTEN      15133/java

Then it's a network issue, firewall blocking ports or something like that.

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