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?
roshni
(R_C)
May 29, 2018, 6:57am
2
Please check your networking information .
You can get clarity here :
In this tutorial, we will go over the installation of the Elasticsearch ELK Stack on Ubuntu 14.04—that is, Elasticsearch 2.2.x, Logstash 2.2.x, and Kibana 4.4.x. We will also show you how to configure it to gather and visualize the syslogs of your...
If issue still persists please share your logstash conf details too
A_B
May 29, 2018, 7:06am
3
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.
A_B
May 29, 2018, 9:20am
5
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
A_B
May 29, 2018, 11:35am
7
Then it's a network issue, firewall blocking ports or something like that.
system
(system)
Closed
June 26, 2018, 11:35am
8
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.