# Import Heartbeat Dashboard is trying to connect Elasticsearch client on http://127.0.0.1:9200

**URL:** https://discuss.elastic.co/t/import-heartbeat-dashboard-is-trying-to-connect-elasticsearch-client-on-http-127-0-0-1-9200/183518
**Category:** Beats
**Tags:** heartbeat
**Created:** [May 30, 2019, 12:09pm UTC](https://discuss.elastic.co/t/import-heartbeat-dashboard-is-trying-to-connect-elasticsearch-client-on-http-127-0-0-1-9200/183518 "2019-05-30T12:09:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Priya2](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@Priya2](https://discuss.elastic.co/u/Priya2)
#### Post date: [May 30, 2019, 12:09pm UTC](https://discuss.elastic.co/t/import-heartbeat-dashboard-is-trying-to-connect-elasticsearch-client-on-http-127-0-0-1-9200/183518/1 "2019-05-30T12:09:09Z")

</div>

Hi all,

I am trying to import Heartbeat Dashboard. Steps performed:  
-Installed Elasticsearch and Kibana on Host1. This is working Fine  
-Installed Heartbeat5.6 on Host2 . Heartbeat monitoring is working fine

- Edited heartbeat.yml
# Configure monitors

heartbeat.monitors:

- type: http

#-------------------------- Elasticsearch output ------------------------------  
output.elasticsearch:

# Array of hosts to connect to.

hosts: ["[elkquest.unx.sas.com:9200](http://elkquest.unx.sas.com:9200)"]  
template.name: "heartbeat"  
template.path: "heartbeat.template.json"  
template.overwrite: true

- restarted Heartbeat. I couldn't see the default dashboard so i tried to import dashboard with command /usr/share/heartbeat/scripts/import\_dashboards  
This is giving error:  
fail to create the Elasticsearch loader: Error creating Elasticsearch client: Couldn't connect to any of the configured Elasticsearch hosts, errors: 1 error: Get [http://127.0.0.1:9200](http://127.0.0.1:9200): dial tcp 127.0.0.1:9200: getsockopt: connection refused  
Exiting

- The elasticsearch host should connect to [http://Host1:9200](http://Host1:9200).

Please suggest where I am going wrong

---

<div class="post-metadata">

### Author: ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)
#### Post date: [June 3, 2019, 2:47pm UTC](https://discuss.elastic.co/t/import-heartbeat-dashboard-is-trying-to-connect-elasticsearch-client-on-http-127-0-0-1-9200/183518/2 "2019-06-03T14:47:43Z")

</div>

Is there a reason you're using such an old version of heartbeat? Can you upgrade to the lastest version?

In the latest versions the heartbeat dashboards are now located here: [https://github.com/elastic/uptime-contrib](https://github.com/elastic/uptime-contrib). See the README for instructions on installing the dashboard.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 1, 2019, 2:58pm UTC](https://discuss.elastic.co/t/import-heartbeat-dashboard-is-trying-to-connect-elasticsearch-client-on-http-127-0-0-1-9200/183518/3 "2019-07-01T14:58:43Z")

</div>

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