ElasticSearch – View available disk space

To view free disk space in ElasticSearch machines use any of following url:

$ curl "http://host1:9200/_cat/nodes?h=h,diskAvail"

Output:

host1 25.7gb
host2 25.1gb
host3 24.5gb

If you need output in json format use following command:

$ curl "http://me31:9200/_nodes/stats/fs?pretty=1"
Advertisements

Kibana connection failed elasticsearch 1.4

While trying to setup ELK(Elastic Search, Logstash and Kibana) I got an error saying “Connection Failed”

If you are suing elastic search version 1.4 or above this issue will occur.

To resolve it append following lines in elasticsearch.yml file(which is in config directory of elastic search):

http.cors.allow-origin: "/.*/"
http.cors.enabled: true

After adding above lines restart elasticsearch.

This should fix “Connection Failed” issue.