Get a list of dashboards

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

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:

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

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.

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.

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

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