# Kibana dashboards import failed

**URL:** <https://discuss.elastic.co/t/kibana-dashboards-import-failed/135104>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [June 8, 2018, 7:55am UTC](https://discuss.elastic.co/t/kibana-dashboards-import-failed/135104 "2018-06-08T07:55:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![l33tname](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/l33tname/32/32053_2.png) [@l33tname](https://discuss.elastic.co/u/l33tname)\
**Post date:** [June 8, 2018, 7:55am UTC](https://discuss.elastic.co/t/kibana-dashboards-import-failed/135104/1 "2018-06-08T07:55:14Z")

</div>

Is this a bug or or is it not possible to import the dashboards with this metricbeat version to kibana?

```auto
metricbeat version 6.2.4 (amd64), libbeat 6.2.4

```

```auto
Exiting: Error importing Kibana dashboards: fail to create the Kibana loader: Error creating Kibana client: fail to get the Kibana version:fail to unmarshal the response from GET http://host:5601/api/status: json: cannot unmarshal string into Go struct field kibanaVersionResponse.version of type struct { Number string "json:\"number\""; Snapshot bool "json:\"build_snapshot\"" }. Response: {"name":"hostname","version":"5.4.0","buildNum":15063,"buildSha":"75afc9fbb024df55fa01acd1a4c2f76d44XXXXXX","uuid":"457e6a6b-XXXX-XXXX-9577-c8d9bbb268ae","status":{"overall":{"state":"green","title":"Green","nickname":"Looking good","icon":"succ... (truncated)

```

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [June 8, 2018, 1:29pm UTC](https://discuss.elastic.co/t/kibana-dashboards-import-failed/135104/2 "2018-06-08T13:29:03Z")

</div>

You are affected by [https://github.com/elastic/beats/issues/6090](https://github.com/elastic/beats/issues/6090). This will be fixed in the upcoming 6.3.0 release. Fix: [https://github.com/elastic/beats/pull/6233](https://github.com/elastic/beats/pull/6233).

Were you by any chance using the option `-E setup.dashboards.always_kibana=true`? If so try without that.

---

<div class="post-metadata">

**Author:** ![l33tname](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/l33tname/32/32053_2.png) [@l33tname](https://discuss.elastic.co/u/l33tname)\
**Post date:** [June 12, 2018, 6:50am UTC](https://discuss.elastic.co/t/kibana-dashboards-import-failed/135104/3 "2018-06-12T06:50:50Z")

</div>

Uh yes I was using `-E setup.dashboards.always_kibana=true`. But when I remove it, it failes as well:

```auto
metricbeat setup --dashboards -E setup.dashboards.kibana_index=logstash-elk028-*

```

Is there an easy way to test if this bugfix works in my case or do I need to build everything by hand?

---

<div class="post-metadata">

**Author:** ![l33tname](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/l33tname/32/32053_2.png) [@l33tname](https://discuss.elastic.co/u/l33tname)\
**Post date:** [June 12, 2018, 7:57am UTC](https://discuss.elastic.co/t/kibana-dashboards-import-failed/135104/4 "2018-06-12T07:57:24Z")

</div>

Ok I compiled it myself and it is fixed.

```auto
/home/user/metricbeat -c /etc/metricbeat/metricbeat.yml setup --dashboards -E setup.dashboards.always_kibana=true -E setup.dashboards.kibana_index=logstash-elk028-*

```

But apparently my Kibana is to old:

```auto
Kibana API is not available in Kibana version 5.4.0

```

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [June 12, 2018, 11:17pm UTC](https://discuss.elastic.co/t/kibana-dashboards-import-failed/135104/5 "2018-06-12T23:17:19Z")

</div>

> [@l33tname](#):
>
> -E setup.dashboards.always\_kibana=true

When using Kibana 5.x you should not set that flag because the dashboards are installed by writing them directly into the .kibana index in ES. In Kibana 6 (and maybe 5.6) a REST API was added to install dashboards.

This flag tells it to go directly to the Kibana API.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [June 12, 2018, 11:18pm UTC](https://discuss.elastic.co/t/kibana-dashboards-import-failed/135104/6 "2018-06-12T23:18:34Z")

</div>

And BTW there are snapshots builds in [https://s3-us-west-2.amazonaws.com/beats-package-snapshots/index.html](https://s3-us-west-2.amazonaws.com/beats-package-snapshots/index.html).

---

<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 10, 2018, 11:28pm UTC](https://discuss.elastic.co/t/kibana-dashboards-import-failed/135104/7 "2018-07-10T23:28:24Z")

</div>

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