Kibana Reflecting error to connect with elasticsearch

Hi ,
I'm using new version of elasticsearch(5.2.1) and kibana (5.2.1) and i'm try to start elasticsearch as cluster mode. Elasticsearch is up and running when i start kibana im getting error status : red and please find the below error description,

Status Breakdown
ID Status
ui settings Elasticsearch plugin is red
plugin:kibana@5.2.1 Ready
plugin:elasticsearch@5.2.1 Unable to connect to Elasticsearch at http://xxxx:9200/.
plugin:console@5.2.1 Ready
plugin:timelion@5.2.1 Ready

Plz help to resolve this asap and i have to finish poc before Mar 10th.

Hi Ganesh2303,

If you do the following what do you get:

curl -XGET http://xxxx:9200/ -> this gives you details on your ES cluster

Or using postman or any tool or even curl

curl -XGET http://xxxx:9200/_cluster/health -> this gives you more details on your ES cluster, for instance number of nodes, etc.

This is a start to see if your ES cluster is configured correctly.

Hope it helps

@rulanitee
please find the reply of the above command which you mentioned,

curl -XGET http://xxxx:9200

{
  "name" : "node1",
  "cluster_name" : "sub_prod_cluster",
  "cluster_uuid" : "_na_",
  "version" : {
    "number" : "5.2.1",
    "build_hash" : "db0d481",
    "build_date" : "2017-02-09T22:05:32.386Z",
    "build_snapshot" : false,
    "lucene_version" : "6.4.1"
  },
  "tagline" : "You Know, for Search"
}

curl -XGET http://xxxxx:9200/_cluster/health
{"cluster_name":"sub_prod_cluster","status":"red","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":0,"active_shards":0,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":0,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":"NaN"}

Hi Ganesh,

Thanks for the response. If I am not mistaken, this is a cluster with just one node. Can you do the following in the elasticsearch.yml config:

node.local=true

restart elasticsearch service and check the health again.

You can check here for more info:

Hope it works

Sorry for late reply when i try with node.local: true i faced issue to startup elastisearch itself,

 in 'reader', line 53, column 1:
    node.local= true
    ^
could not find expected ':'
 in 'reader', line 54, column 1:
    # You can exploit these settings ...
    ^
];
Likely root cause: while scanning a simple key
 in 'reader', line 53, column 1:
    node.local= true
    ^
could not find expected ':'
 in 'reader', line 54, column 1:
    # You can exploit these settings ...

And one more thing now i started with cluster eventhough its showing same error in kibana.
Is that any setting have set false for xpack, bcoz i read one article by default it was set to true am i wrong mean please correct me

Hi Ganesh,

Sorry for the late response, did you manage to get this resolved?

Regards

HI rulanitee,
No still facing the issue, thank you for your response

Hi Ganesh,

If you are still having issues, can you try the following:

restart elasticsearch

check the logs and see if all is good

-> /var/log/elasticsearch/your_cluster_name.log and /var/log/elasticsearch/elasticsearch.log

Let me know if there is an error or issue logged

Regards

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