# How to import bundled index pattern and Kibana dashboard from beats 6.3.0 using basic auth?

**URL:** <https://discuss.elastic.co/t/how-to-import-bundled-index-pattern-and-kibana-dashboard-from-beats-6-3-0-using-basic-auth/153592>\
**Category:** Beats\
**Created:** [October 23, 2018, 12:12pm UTC](https://discuss.elastic.co/t/how-to-import-bundled-index-pattern-and-kibana-dashboard-from-beats-6-3-0-using-basic-auth/153592 "2018-10-23T12:12:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Post date:** [October 23, 2018, 12:12pm UTC](https://discuss.elastic.co/t/how-to-import-bundled-index-pattern-and-kibana-dashboard-from-beats-6-3-0-using-basic-auth/153592/1 "2018-10-23T12:12:21Z")

</div>

Hi,

I am using ELK GA 6.3.0. I am trying to import bundled dashboard and index pattern from Heartbeat. I have set basic auth in my elasticsearch, and I am trying out the below command;

```
./heartbeat setup --dashboards --template -E setup.kibana.host=192.168.0.1:5601 -E setup.kibana.username=admin -E setup.kibana.password=admin2

```

But I am getting the below error;

`Exiting: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch http://localhost:9200: Get http://localhost:9200: dial tcp [::1]:9200: getsockopt: connection refused]`

My elasticsearch endpoint is `192.168.0.2:9210`

How to fix this?

Thanks.

---

<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:** [November 20, 2018, 2:12pm UTC](https://discuss.elastic.co/t/how-to-import-bundled-index-pattern-and-kibana-dashboard-from-beats-6-3-0-using-basic-auth/153592/2 "2018-11-20T14:12:23Z")

</div>

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