# CRIT Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana

**URL:** https://discuss.elastic.co/t/crit-exiting-error-importing-kibana-dashboards-fail-to-import-the-dashboards-in-kibana/108956
**Category:** Beats
**Tags:** metricbeat
**Created:** [November 24, 2017, 3:50am UTC](https://discuss.elastic.co/t/crit-exiting-error-importing-kibana-dashboards-fail-to-import-the-dashboards-in-kibana/108956 "2017-11-24T03:50:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)
#### Post date: [November 24, 2017, 3:50am UTC](https://discuss.elastic.co/t/crit-exiting-error-importing-kibana-dashboards-fail-to-import-the-dashboards-in-kibana/108956/1 "2017-11-24T03:50:32Z")

</div>

I'm trying to import dashboards into Kibana and getting following:

> root@suey:/usr/share/metricbeat/bin# ./metricbeat -c /etc/metricbeat/metricbeat.yml setup -e  
> 2017/11/24 03:47:30.504575 beat.go:426: INFO Home path: [/usr/share/metricbeat/bin] Config path: [/usr/share/metricbeat/bin] Data path: [/usr/share/metricbeat/bin/data] Logs path: [/usr/share/metricbeat/bin/logs]  
> 2017/11/24 03:47:30.504597 metrics.go:23: INFO Metrics logging every 30s  
> 2017/11/24 03:47:30.504651 beat.go:433: INFO Beat UUID: fa408872-8147-44f6-a135-02b2ff17116d  
> 2017/11/24 03:47:30.504668 beat.go:192: INFO Setup Beat: metricbeat; Version: 6.0.0  
> 2017/11/24 03:47:30.504840 client.go:123: INFO Elasticsearch url: [http://localhost:9200](http://localhost:9200)  
> 2017/11/24 03:47:30.505082 module.go:80: INFO Beat name: suey.nknwn.local  
> 2017/11/24 03:47:30.505271 client.go:123: INFO Elasticsearch url: [http://localhost:9200](http://localhost:9200)  
> 2017/11/24 03:47:30.507050 client.go:651: INFO Connected to Elasticsearch version 6.0.0  
> 2017/11/24 03:47:30.514099 load.go:73: INFO Template already exists and will not be overwritten.  
> Loaded index template  
> 2017/11/24 03:47:30.514222 client.go:123: INFO Elasticsearch url: [http://localhost:9200](http://localhost:9200)  
> 2017/11/24 03:47:30.515153 client.go:651: INFO Connected to Elasticsearch version 6.0.0  
> 2017/11/24 03:47:30.515169 dashboards.go:49: INFO For Elasticsearch version \>= 6.0.0, the Kibana dashboards need to be imported via the Kibana API.  
> 2017/11/24 03:47:30.515215 client.go:69: INFO Kibana url: [http://localhost:5601](http://localhost:5601)  
> 2017/11/24 03:47:30.522252 beat.go:625: CRIT Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /usr/share/metricbeat/bin/kibana: No directory /usr/share/metricbeat/bin/kibana/default  
> Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /usr/share/metricbeat/bin/kibana: No directory /usr/share/metricbeat/bin/kibana/default  
> root@suey:/usr/share/metricbeat/bin#

elasticsearch, logstash and kibana are running inside of docker containers, all running version 6.0.0.

Please advise.

---

<div class="post-metadata">

### Author: ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)
#### Post date: [November 24, 2017, 1:20pm UTC](https://discuss.elastic.co/t/crit-exiting-error-importing-kibana-dashboards-fail-to-import-the-dashboards-in-kibana/108956/2 "2017-11-24T13:20:54Z")

</div>

The error message indicates that metricbeat is looking for dashboards in the wrong place. You need to set `setup.dashboards.directory` correctly, so dashboards can be found. The dashboards are under `/usr/share/metricbeat/kibana` folder.

```auto
./filebeat setup -E "setup.dashboards.directory=/usr/share/metricbeat/kibana" 

```

---

<div class="post-metadata">

### Author: ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)
#### Post date: [November 24, 2017, 3:10pm UTC](https://discuss.elastic.co/t/crit-exiting-error-importing-kibana-dashboards-fail-to-import-the-dashboards-in-kibana/108956/3 "2017-11-24T15:10:14Z")

</div>

seems like it's working:

> root@suey:/usr/share/metricbeat# /usr/share/metricbeat/bin/metricbeat -c /etc/metricbeat/metricbeat.yml setup -e -E "setup.dashboards.directory=/usr/share/metricbeat/kibana"  
> 2017/11/24 15:08:21.650991 beat.go:426: INFO Home path: [/usr/share/metricbeat/bin] Config path: [/usr/share/metricbeat/bin] Data path: [/usr/share/metricbeat/bin/data] Logs path: [/usr/share/metricbeat/bin/logs]  
> 2017/11/24 15:08:21.651065 beat.go:433: INFO Beat UUID: fa408872-8147-44f6-a135-02b2ff17116d  
> 2017/11/24 15:08:21.651080 beat.go:192: INFO Setup Beat: metricbeat; Version: 6.0.0  
> 2017/11/24 15:08:21.651069 metrics.go:23: INFO Metrics logging every 30s  
> 2017/11/24 15:08:21.651228 client.go:123: INFO Elasticsearch url: [http://localhost:9200](http://localhost:9200)  
> 2017/11/24 15:08:21.651389 module.go:80: INFO Beat name: suey.nknwn.local  
> 2017/11/24 15:08:21.651546 client.go:123: INFO Elasticsearch url: [http://localhost:9200](http://localhost:9200)  
> 2017/11/24 15:08:21.652930 client.go:651: INFO Connected to Elasticsearch version 6.0.0  
> 2017/11/24 15:08:21.659491 load.go:73: INFO Template already exists and will not be overwritten.  
> Loaded index template  
> 2017/11/24 15:08:21.659620 client.go:123: INFO Elasticsearch url: [http://localhost:9200](http://localhost:9200)  
> 2017/11/24 15:08:21.660690 client.go:651: INFO Connected to Elasticsearch version 6.0.0  
> 2017/11/24 15:08:21.660712 dashboards.go:49: INFO For Elasticsearch version \>= 6.0.0, the Kibana dashboards need to be imported via the Kibana API.  
> 2017/11/24 15:08:21.660767 client.go:69: INFO Kibana url: [http://localhost:5601](http://localhost:5601)  
> 2017/11/24 15:08:33.630403 beat.go:541: INFO Kibana dashboards successfully loaded.  
> Loaded dashboards  
> root@suey:/usr/share/metricbeat#

---

<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: [December 22, 2017, 3:10pm UTC](https://discuss.elastic.co/t/crit-exiting-error-importing-kibana-dashboards-fail-to-import-the-dashboards-in-kibana/108956/4 "2017-12-22T15:10:29Z")

</div>

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