Connect Kibana to Elasticsearch

Hi,

I can get the right response by curl -XGET 'localhost:9200/?pretty'

{
  "name" : "RcPwG_M",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "L6U8oE0pRdqHSMcmY6BshQ",
  "version" : {
    "number" : "6.1.3",
    "build_hash" : "af51318",
    "build_date" : "2018-01-26T18:22:55.523Z",
    "build_snapshot" : false,
    "lucene_version" : "7.1.0",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

However, I encountered the problem when connecting Kibana to Elasticsearch.

  log   [22:02:21.656] [info][status][plugin:kibana@6.1.3] Status changed from uninitialized to green - Ready
  log   [22:02:21.685] [info][status][plugin:elasticsearch@6.1.3] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [22:02:21.705] [info][status][plugin:console@6.1.3] Status changed from uninitialized to green - Ready
  log   [22:02:21.717] [info][status][plugin:metrics@6.1.3] Status changed from uninitialized to green - Ready
  log   [22:02:21.824] [info][status][plugin:timelion@6.1.3] Status changed from uninitialized to green - Ready
  log   [22:02:21.827] [info][listening] Server running at http://localhost:5601
  log   [22:02:22.706] [error][admin][elasticsearch] Request error, retrying
HEAD https://localhost:9200/ => connect ECONNREFUSED 127.0.0.1:9200
  log   [22:02:23.708] [warning][admin][elasticsearch] Unable to revive connection: https://localhost:9200/
  log   [22:02:23.712] [warning][admin][elasticsearch] No living connections
  log   [22:02:23.714] [error][status][plugin:elasticsearch@6.1.3] Status changed from yellow to red - Unable to connect to Elasticsearch at https://localhost:9200.
  log   [22:02:27.219] [warning][admin][elasticsearch] Unable to revive connection: https://localhost:9200/
  log   [22:02:27.219] [warning][admin][elasticsearch] No living connections

All the configuration remain default. Does any have an idea? Thanks.

Are you sure elasticsearch is running on localhost:9200?

Hello,

You can try below things,

1.Check if "telnet localhost 9200" is working fine.
2.Have you installed x-pack. In that case check if kibana.yml is updated with required credentials and other config parameters.

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