# Error importing Kibana dashboards:

**URL:** <https://discuss.elastic.co/t/error-importing-kibana-dashboards/127897>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [April 13, 2018, 4:50am UTC](https://discuss.elastic.co/t/error-importing-kibana-dashboards/127897 "2018-04-13T04:50:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephenpatten](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenpatten/32/9146_2.png) [@stephenpatten](https://discuss.elastic.co/u/stephenpatten)\
**Post date:** [April 13, 2018, 4:50am UTC](https://discuss.elastic.co/t/error-importing-kibana-dashboards/127897/1 "2018-04-13T04:50:22Z")

</div>

Hello,

I am getting this error when executing heartbeat from the windows command line:  
Exiting: Error importing Kibana dashboards: fail to create the Kibana loader: Error creating Kibana client: fail to get the Kibana version:HTTP GET request to /api/status fails: fail to execute the HTTP GET request: Get [https://tstkibana.tstlifeint.tstpl01.net:5601/api/status:](https://tstkibana.tstlifeint.tstpl01.net:5601/api/status:) dial tcp 172.20.141.166:5601: connectex: No connection could be made because the target machine actively refused it.. Response: .

It seems as if heartbeat is issuing a GET to [http://tstkibana.tstlifeint.tstpl01.net:5601/api/status](http://tstkibana.tstlifeint.tstpl01.net:5601/api/status), but that fails. I have DNS setup for kibana "[tstkibana.tstlifeint.tstpl01.net](http://tstkibana.tstlifeint.tstpl01.net)" so the port seems to be the problem as I can navigate to [https://tstkibana.tstlifeint.tstpl01.net/api/status](https://tstkibana.tstlifeint.tstpl01.net/api/status) in chrome and receive a 200 and json.

Any pointers would be helpful.

-Stephen

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [April 13, 2018, 9:45am UTC](https://discuss.elastic.co/t/error-importing-kibana-dashboards/127897/2 "2018-04-13T09:45:07Z")

</div>

I think you need to set the `setup.kibana.host` option to `http://tstkibana.tstlifeint.tstpl01.net`, see [here](https://www.elastic.co/guide/en/beats/heartbeat/6.2/setup-kibana-endpoint.html).

---

<div class="post-metadata">

**Author:** ![stephenpatten](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenpatten/32/9146_2.png) [@stephenpatten](https://discuss.elastic.co/u/stephenpatten)\
**Post date:** [April 13, 2018, 11:35am UTC](https://discuss.elastic.co/t/error-importing-kibana-dashboards/127897/3 "2018-04-13T11:35:32Z")

</div>

That is set.

Here is thr yml file:

```
heartbeat.monitors:
-
    type: http
    urls:
        - 'http://plempcorrws.tstlifeint.tstpl01.net/Correspondence'
    schedule: '@every 10s'

```

setup.template.settings:  
index.number\_of\_shards: 1  
index.codec: best\_compression  
setup.dashboards.enabled: true  
setup.dashboards.directory: '${path.home}/kibana'  
setup.dashboards.beat: heartbeat  
setup.dashboards.index: 'workflow-_'  
setup.template.enabled: true  
setup.template.name: workflow  
setup.template.pattern: 'workflow-_'  
setup.kibana:  
host: [tstkibana.tstlifeint.tstpl01.net](http://tstkibana.tstlifeint.tstpl01.net)  
protocol: https  
ssl.enabled: true  
ssl.certificate\_authorities:  
- certs/PL-ROOT-CA.crt  
- certs/ITS-ISSUING01-CA.crt  
ssl.certificate: certs/tstheartbeat.tstlifeint.tstpl01.net.crt  
ssl.key: certs/tstheartbeat.tstlifeint.tstpl01.net.key  
output.elasticsearch:  
enabled: true  
hosts:  
- '[https://lidt20elsrch01.tstlifeint.tstpl01.net:9200](https://lidt20elsrch01.tstlifeint.tstpl01.net:9200)'  
- '[https://lidt20elsrch02.tstlifeint.tstpl01.net:9200](https://lidt20elsrch02.tstlifeint.tstpl01.net:9200)'  
- '[https://lidt20elsrch03.tstlifeint.tstpl01.net:9200](https://lidt20elsrch03.tstlifeint.tstpl01.net:9200)'  
- '[https://lidt20kibana01.tstlifeint.tstpl01.net:9200](https://lidt20kibana01.tstlifeint.tstpl01.net:9200)'  
protocol: https  
username: "  
password: ''  
index: 'workflow-heartbeat-%{[beat.version]}-%{+yyyy.MM.dd}'  
ssl.enabled: true  
ssl.certificate\_authorities:  
- certs/PL-ROOT-CA.crt  
- certs/ITS-ISSUING01-CA.crt  
ssl.certificate: certs/tstheartbeat.tstlifeint.tstpl01.net.crt  
ssl.key: certs/tstheartbeat.tstlifeint.tstpl01.net.key  
logging.to\_files: true  
logging.files:  
path: 'D:\logs\heartbeat'  
xpack.monitoring.enabled: true  
xpack.monitoring.elasticsearch: null

---

<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:** [May 11, 2018, 11:35am UTC](https://discuss.elastic.co/t/error-importing-kibana-dashboards/127897/4 "2018-05-11T11:35:41Z")

</div>

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