# Issue in exporting Dashboard and visualizations

**URL:** <https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277>\
**Category:** Kibana\
**Created:** [January 19, 2018, 4:23pm UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277 "2018-01-19T16:23:35Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 3, 2018, 10:32am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/21 "2018-02-03T10:32:33Z")

</div>

can you please give a clarity what all can i export with the dashboard......with the dashboard i can get related saved searches , related visualizations and related index pattern as well is it?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 3, 2018, 10:37am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/22 "2018-02-03T10:37:22Z")

</div>

I think I tested this a while ago, and believe everything related to my dashboard (index pattern, visualisations and saved searches) was successfully exported. Is this not the case for you? Which version are you on?

---

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 3, 2018, 10:39am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/23 "2018-02-03T10:39:26Z")

</div>

the dashboard i have tested is not having saved searches....i would like to test it once again and i am using version 6.0  
i will test it once again and approach you if i have any queries

---

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 3, 2018, 10:41am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/24 "2018-02-03T10:41:34Z")

</div>

Thank you Christian\_Dahlqvist

---

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 5, 2018, 6:56am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/25 "2018-02-05T06:56:48Z")

</div>

Hi Christian\_Dahlqvist,  
what you said is correct i am able to export associated index pattern, associated saved search and associated visualizations but not the index template  
except index template able to export everything.

---

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 5, 2018, 9:04am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/26 "2018-02-05T09:04:28Z")

</div>

i need index template also to be exported...how can i do that?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 5, 2018, 9:06am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/27 "2018-02-05T09:06:10Z")

</div>

Index templates are not linked to visualizations or dashboard in any way, so you will have to export them separately from Elasticsearch. Kibana does not really care about index templates as they are used by Elasticsearch when creating new indices.

---

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 5, 2018, 9:08am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/28 "2018-02-05T09:08:27Z")

</div>

yeah how can i link that particular index pattern with associated index template and export it?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 5, 2018, 9:10am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/29 "2018-02-05T09:10:39Z")

</div>

Given that index templates can contain varying wildcard patterns to match the indices to apply to, I do not think there is any easy way to do that.

---

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 5, 2018, 9:11am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/30 "2018-02-05T09:11:53Z")

</div>

index templates can contain varying wildcard patterns to match the indices  
can you give an example for the above statement

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 5, 2018, 9:17am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/31 "2018-02-05T09:17:41Z")

</div>

Assume I have an index pattern in Kibana defined as `filebeat-*`. The pattern specified in the index templates could vary quite a lot and still match this pattern, e.g. `*`, `file*`, `f*`, `*beat*` and `*-*`. Depending on what the index naming convention is, it could even be that a `*2018*` pattern would apply even when it is not part of the pattern specified in Kibana.

If you have some patterns for how you define and use index templates it may be easier, but handling this in a general way is hard.

---

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 5, 2018, 9:21am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/32 "2018-02-05T09:21:58Z")

</div>

yeah i had custom pattern and i have created template to my index now suggest me how to export the associated template from elasticsearch

---

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 5, 2018, 9:22am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/33 "2018-02-05T09:22:25Z")

</div>

as you said it is easier

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 5, 2018, 9:27am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/34 "2018-02-05T09:27:28Z")

</div>

You will need to use the [index template APIs](https://www.elastic.co/guide/en/elasticsearch/reference/6.1/indices-templates.html) to identify and get the relevant templates.

---

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 5, 2018, 9:28am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/35 "2018-02-05T09:28:38Z")

</div>

Okay i will try Christian Thank you

---

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 6, 2018, 9:34am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/36 "2018-02-06T09:34:40Z")

</div>

Christian i would like to export both the index template and index as well with the dashboard  
so using kibana api not able to export index template and index  
as you said using template api i can get one particular template and its related one index which i know manually but i need few dashboards related index templates and indices

---

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 6, 2018, 9:36am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/37 "2018-02-06T09:36:09Z")

</div>

so based on dashboard uid can i get its related indices and its templates?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 6, 2018, 9:44am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/38 "2018-02-06T09:44:34Z")

</div>

As index templates are not related to dashboards, I suspect you will need to create a script to do it based on the APIs I linked to.

---

<div class="post-metadata">

**Author:** ![dangal](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dangal](https://discuss.elastic.co/u/dangal)\
**Post date:** [February 6, 2018, 9:52am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/39 "2018-02-06T09:52:19Z")

</div>

" index templates are not related to dashboards" i agree with this  
but how can i recognise the index template and index of those specific dashboards and export them through api's placing in script

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 6, 2018, 9:58am UTC](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277/40 "2018-02-06T09:58:54Z")

</div>

I do not know. If you have some convention around how you set up patterns in index templates, you may rely on that. If the patterns can be anything, it will be difficult, as I highlighted with my example.

[Previous page](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277.md?page=1)

[Next page](https://discuss.elastic.co/t/issue-in-exporting-dashboard-and-visualizations/116277.md?page=3)
