# Get a list of dashboards

**URL:** <https://discuss.elastic.co/t/get-a-list-of-dashboards/233031>\
**Category:** Elasticsearch\
**Created:** [May 18, 2020, 5:46am UTC](https://discuss.elastic.co/t/get-a-list-of-dashboards/233031 "2020-05-18T05:46:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mudricd](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@mudricd](https://discuss.elastic.co/u/mudricd)\
**Post date:** [May 18, 2020, 5:46am UTC](https://discuss.elastic.co/t/get-a-list-of-dashboards/233031/1 "2020-05-18T05:46:55Z")

</div>

I am trying to get a list of dashboards. Here is my command:

```auto
curl -u 'elastic:xxxxx' -XGET --cacert /opt/ssl-certs/client-ca.cer -s https://x.x.x.x:9201/.kibana/_search?type=dashboard&size=40 | grep Metricbeat

```

But all I get is:

```auto
{"took":0,"timed_out":false,"_shards":{"total":1,"successful":1,"skipped":0,"failed":0},"hits":{"total":{"value":0,"relation":"eq"},"max_score":null,"hits":[]}}

```

Nothing useful as there are 45 dashboards available...

Any help would be much appreciated.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [May 18, 2020, 2:40pm UTC](https://discuss.elastic.co/t/get-a-list-of-dashboards/233031/2 "2020-05-18T14:40:18Z")

</div>

How exactly the `.kibana` index is structured and can be searched is considered an implementation detail and interacting directly with it is not recommended.

It seems like your use case can be covered nicely by the [saved object API](https://www.elastic.co/guide/en/kibana/master/saved-objects-api-get.html).

---

<div class="post-metadata">

**Author:** ![mudricd](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@mudricd](https://discuss.elastic.co/u/mudricd)\
**Post date:** [May 18, 2020, 10:57pm UTC](https://discuss.elastic.co/t/get-a-list-of-dashboards/233031/3 "2020-05-18T22:57:24Z")

</div>

Thanks @flash1293. I am not looking for a single Kibana saved object by ID. I want to list all dashboards which should be straight forward and queried from elasticsearch according to documentation and other forum posts...

I run ELK Stack version 7.5 so it looks like it is a syntax issue or similar.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [May 19, 2020, 5:00am UTC](https://discuss.elastic.co/t/get-a-list-of-dashboards/233031/4 "2020-05-19T05:00:37Z")

</div>

My bad, I sent you the link to the wrong sub page: [https://www.elastic.co/guide/en/kibana/master/saved-objects-api-find.html](https://www.elastic.co/guide/en/kibana/master/saved-objects-api-find.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:** [June 16, 2020, 5:00am UTC](https://discuss.elastic.co/t/get-a-list-of-dashboards/233031/5 "2020-06-16T05:00:45Z")

</div>

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