1
votes

I have install elasticsearch and kibana in the Google VM instance (Ubuntu-16.04) and configured them respectively. I have check the status of elasticsearch and kibana. Both are in active (running state).

I have viewed elasticsearch usingcommand, curl -XGET "{ip-addr}:9200". The output is

{
  "name" : "node-1",
  "cluster_name" : "cluster-1",
  "version" : {
    "number" : "2.3.1",
    "build_hash" : "bd980929010aef404e7cb0843e61d0665269fc39",
    "build_timestamp" : "2016-04-04T12:25:05Z",
    "build_snapshot" : false,
    "lucene_version" : "5.5.0"
  },
  "tagline" : "You Know, for Search"
}

When I'm trying to see for kibana with curl -XGET "{ip-addr}:5601", it is throwing error as

curl: (7) Failed to connect to  {ip-addr} port 5601: Connection refused

The changes I have done in kibana.yml file are :

server.port: 5601 
server.host: 10.128.0.2 
server.name: "tserver" 
elasticsearch.url: "10.128.0.2:9200" 
kibana.index: ".tkibana" 
logging.dest: /var/log/kibana/kibana.log

The log file is also not updating.

When kibana is in active state, I'm trying this command curl -XGET "10.128.0.2:5601" , the status of kibana is going to be inactive.

I found this port is not listened. I have checked the 9200 and 5601 ports using following commands.

netstat -a -n | grep tcp | grep 9200 , the output is tcp6 0 0 10.128.0.2:9200 :::* LISTEN

But for 5601 port, netstat -a -n | grep tcp | grep 5601 , the output is null (empty message).

I have to view elasticsearch data in kibana console, So should I install Loagstash too or not needed ???

Can, anybody help me out from this problem.

1
something is blocking port 5601, but not port 9200.. firewall probably?hanshenrik

1 Answers

1
votes

In your kibana.yml file, you need to modify the following setting in order for Kibana to bind to the proper interface:

server.host: 10.128.0.2

Much like you did in elasticsearch.yml for Elasticsearch