# Export dashboard & visualization cli in kibana without know the kibana id

**URL:** https://discuss.elastic.co/t/export-dashboard-visualization-cli-in-kibana-without-know-the-kibana-id/240482
**Category:** Kibana
**Created:** [July 9, 2020, 7:57am UTC](https://discuss.elastic.co/t/export-dashboard-visualization-cli-in-kibana-without-know-the-kibana-id/240482 "2020-07-09T07:57:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![anggara88](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@anggara88](https://discuss.elastic.co/u/anggara88)
#### Post date: [July 9, 2020, 7:57am UTC](https://discuss.elastic.co/t/export-dashboard-visualization-cli-in-kibana-without-know-the-kibana-id/240482/1 "2020-07-09T07:57:49Z")

</div>

how to export dashboard & visualization in kibana with cli without know the kibana id because of unaccessible kibana

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [July 10, 2020, 12:15am UTC](https://discuss.elastic.co/t/export-dashboard-visualization-cli-in-kibana-without-know-the-kibana-id/240482/2 "2020-07-10T00:15:01Z")

</div>

Did you say Kibana is inaccessibible ? Did you check why so? any logs?  
Once its accessibile, you can use the dashboard api export to get the dashboards via the API.

[https://www.elastic.co/guide/en/kibana/current/dashboard-api-export.html](https://www.elastic.co/guide/en/kibana/current/dashboard-api-export.html)

or you could use the saved objects API: [https://www.elastic.co/guide/en/kibana/master/saved-objects-api-export.html](https://www.elastic.co/guide/en/kibana/master/saved-objects-api-export.html) to retrieve sets of saved objects that you want to import into Kibana.

Hope it helps  
Rashmi

---

<div class="post-metadata">

### Author: ![anggara88](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@anggara88](https://discuss.elastic.co/u/anggara88)
#### Post date: [July 10, 2020, 12:30am UTC](https://discuss.elastic.co/t/export-dashboard-visualization-cli-in-kibana-without-know-the-kibana-id/240482/3 "2020-07-10T00:30:34Z")

</div>

@rashmi yes, the log say, all shard all failed and the cluster health status is red even I still can access elasticsearch on localhost:9200  
I don't know why this happen

the problem use dashboard api export is, I have to know what the dashboard ID  
how to know the dashboard ID if I can't access kibana ?

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [July 10, 2020, 4:10pm UTC](https://discuss.elastic.co/t/export-dashboard-visualization-cli-in-kibana-without-know-the-kibana-id/240482/4 "2020-07-10T16:10:23Z")

</div>

First you will have to check what the ES and Kibana logs have to say and bring the cluster to `Green` status back again to further troubleshoot .

Can you identify/verify what is failing ?

---

<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: [August 7, 2020, 4:10pm UTC](https://discuss.elastic.co/t/export-dashboard-visualization-cli-in-kibana-without-know-the-kibana-id/240482/5 "2020-08-07T16:10:24Z")

</div>

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