# Cannot setup kibana dashboards

**URL:** <https://discuss.elastic.co/t/cannot-setup-kibana-dashboards/121939>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [February 28, 2018, 8:44pm UTC](https://discuss.elastic.co/t/cannot-setup-kibana-dashboards/121939 "2018-02-28T20:44:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 28, 2018, 8:44pm UTC](https://discuss.elastic.co/t/cannot-setup-kibana-dashboards/121939/1 "2018-02-28T20:44:56Z")

</div>

I have the following set in my metricbeat.yml

```auto
setup.kibana:
  host: "localhost:5601"
  protocol: "https"
  ssl.enabled: true
  ssl.certificate_authorities: ["/etc/opt/zookeeper/MyCorporateCA.pem"]
  ssl.verification_mode: none

```

When I run "cd /etc/metricbeat; /usr/share/metricbeat/bin/metricbeat setup --dashboards" (I run it from there because otherwise it cannot find metricbeat.yml) then I get

> 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/6

which is right, they are under /usr/share/metricbeat/kibana/6, not /usr/share/metricbeat/bin/kibana/6. Am I missing something, or is it just a bug. This is with 6.2.0

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [February 28, 2018, 11:04pm UTC](https://discuss.elastic.co/t/cannot-setup-kibana-dashboards/121939/2 "2018-02-28T23:04:20Z")

</div>

You should run it from `/usr/share/metricbeat` and pass the `-c /etc/metricbeat/metricbeat.yml` argument. I think that will suffice.

If you look at the `/etc/init.d/metricbeat` script, you'll see it passes a few more paths:

```auto
-path.home /usr/share/metricbeat
-path.conf /etc/metricbeat
-path.data /var/lib/metricbeat
-path.logs /var/log/metricbeat

```

With those you don't need to change to any particular directory before running metricbeat.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 1, 2018, 4:13pm UTC](https://discuss.elastic.co/t/cannot-setup-kibana-dashboards/121939/3 "2018-03-01T16:13:11Z")

</div>

> [@adrisr](#):
>
> You should run it from /usr/share/metricbeat and pass the -c /etc/metricbeat/metricbeat.yml argument. I think that will suffice.

Not quite, I still get the same error when doing that. However the following works

```
bin/metricbeat -c /etc/metricbeat/metricbeat.yml \
    -path.home /usr/share/metricbeat \
    -path.config /etc/metricbeat \
    -path.data /var/lib/metricbeat \
    setup --dashboards
```

---

<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:** [March 29, 2018, 4:13pm UTC](https://discuss.elastic.co/t/cannot-setup-kibana-dashboards/121939/4 "2018-03-29T16:13:18Z")

</div>

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