Error Could not contact Elasticsearch at http://localhost:9200. - kibana dashboard

Solution 1:

You need to make sure the elaticsearch_url is set in your kibana config.

vim /opt/kibana/config/kibana.yml

elasticsearch_url: "http://localhost:9200"

then restart:

sudo service kibana restart

Source: Logz