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

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
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
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
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
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.

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.

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

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
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
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
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
2017/11/24 15:08:33.630403 beat.go:541: INFO Kibana dashboards successfully loaded.
Loaded dashboards
root@suey:/usr/share/metricbeat#

1 Like

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