# How to export dashboards including visualization, query, index pattern?

**URL:** <https://discuss.elastic.co/t/how-to-export-dashboards-including-visualization-query-index-pattern/167638>\
**Category:** Kibana\
**Created:** [February 8, 2019, 1:44pm UTC](https://discuss.elastic.co/t/how-to-export-dashboards-including-visualization-query-index-pattern/167638 "2019-02-08T13:44:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [February 8, 2019, 1:44pm UTC](https://discuss.elastic.co/t/how-to-export-dashboards-including-visualization-query-index-pattern/167638/1 "2019-02-08T13:44:16Z")

</div>

Hi,

I am on 6.5.4. Trying to deal with the new spaces.  
I imported all metricbeat dashboards into a space called template\_metricbeat.  
For me are currently only 3 dashboards relevant:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d76ab86322c66bb08907f34cf8088f77d151a390.png)  
So I wanted to export these dashboards incl. visualizations and move it to a different space.

How do I get the dashboard id?  
In saved objects I can only see title and description, linked visualizations, etc. but no id.  
If I check out the kibana index, I see the following:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/4/04b99432d51cd6fb26b5d94c2b7581bc69c3f5b1.png)

I tried to export via curl:

```
curl -XGET localhost:5601/api/kibana/dashboards/export?dashboard=template_metricbeat:dashboard:79ffd6e0-faa0-11e6-947f-177f697178b8

curl -XGET localhost:5601/api/kibana/dashboards/export?dashboard=79ffd6e0-faa0-11e6-947f-177f697178b8

curl -XGET localhost:5601/api/kibana/dashboards/export?namespace=template_metricbeat&dashboard=79ffd6e0-faa0-11e6-947f-177f697178b8

```

All without success. So how do I do it?  
For future releases please implement a GUI wizzard where you can import / export by gui. Function to copy including dependencies to a different space would also be very nice via GUI.

Regards, Andreas

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [February 8, 2019, 9:58pm UTC](https://discuss.elastic.co/t/how-to-export-dashboards-including-visualization-query-index-pattern/167638/2 "2019-02-08T21:58:44Z")

</div>

@asp check out the second half of this blog post, which demonstrates the Dashboard Export API. We are planning to improve the experience in the future, but we don't have a timeline set at this point: [https://www.elastic.co/blog/how-to-migrate-to-kibana-spaces](https://www.elastic.co/blog/how-to-migrate-to-kibana-spaces)

---

<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 8, 2019, 10:12pm UTC](https://discuss.elastic.co/t/how-to-export-dashboards-including-visualization-query-index-pattern/167638/3 "2019-03-08T22:12:53Z")

</div>

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