# Change index name in Visualization

**URL:** <https://discuss.elastic.co/t/change-index-name-in-visualization/100394>\
**Category:** Kibana\
**Created:** [September 13, 2017, 5:23pm UTC](https://discuss.elastic.co/t/change-index-name-in-visualization/100394 "2017-09-13T17:23:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mandar\_Shinde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mandar_shinde/32/17013_2.png) [@Mandar\_Shinde](https://discuss.elastic.co/u/Mandar_Shinde)\
**Post date:** [September 13, 2017, 5:23pm UTC](https://discuss.elastic.co/t/change-index-name-in-visualization/100394/1 "2017-09-13T17:23:11Z")

</div>

Hi All,

Is there a better way to change the index name for a Visualization?

Say I have created a Visualization with index name "test1" and now I have update the index name to "test2".  
One way I found is to go to Settings --\> Saved Objects --\> Visualization tab and select the required Visualization say a pie chart and update the index name in "kibanaSavedObjectMeta.searchSourceJSON".

Thanks  
MS

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [September 13, 2017, 5:34pm UTC](https://discuss.elastic.co/t/change-index-name-in-visualization/100394/2 "2017-09-13T17:34:18Z")

</div>

i think that is the only way

---

<div class="post-metadata">

**Author:** ![Mandar\_Shinde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mandar_shinde/32/17013_2.png) [@Mandar\_Shinde](https://discuss.elastic.co/u/Mandar_Shinde)\
**Post date:** [September 13, 2017, 5:38pm UTC](https://discuss.elastic.co/t/change-index-name-in-visualization/100394/3 "2017-09-13T17:38:23Z")

</div>

Thanks Peter for the quick response.  
Do we have any roadmap for adding a feature to Visualization/Dashboard to update index name in a better way, say a dropdown list of all indexes available and user can simply select it and the Visualization/Dashboard is updated with the selected index.

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [September 13, 2017, 5:58pm UTC](https://discuss.elastic.co/t/change-index-name-in-visualization/100394/4 "2017-09-13T17:58:27Z")

</div>

not that i am aware of but please go on and create an issue on github. thanks!

---

<div class="post-metadata">

**Author:** ![Mandar\_Shinde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mandar_shinde/32/17013_2.png) [@Mandar\_Shinde](https://discuss.elastic.co/u/Mandar_Shinde)\
**Post date:** [September 13, 2017, 6:13pm UTC](https://discuss.elastic.co/t/change-index-name-in-visualization/100394/5 "2017-09-13T18:13:15Z")

</div>

Thanks Peter! Will create one.

---

<div class="post-metadata">

**Author:** ![leofer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leofer/32/71260_2.png) [@leofer](https://discuss.elastic.co/u/leofer)\
**Post date:** [September 13, 2017, 7:29pm UTC](https://discuss.elastic.co/t/change-index-name-in-visualization/100394/6 "2017-09-13T19:29:15Z")

</div>

changing index is can be laborious if you have many visualizations, dashboards etc. In this case what I've done is to Export (In Management -\> Saved Objects). This would download a JSON (text file) where you can search and replace (e.g using tools like sed) , and then upload it again.

[leofer@gmail.com](mailto:leofer@gmail.com)  
Ofer

---

<div class="post-metadata">

**Author:** ![Mandar\_Shinde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mandar_shinde/32/17013_2.png) [@Mandar\_Shinde](https://discuss.elastic.co/u/Mandar_Shinde)\
**Post date:** [September 13, 2017, 7:48pm UTC](https://discuss.elastic.co/t/change-index-name-in-visualization/100394/7 "2017-09-13T19:48:47Z")

</div>

Thanks Ofer! Ya, that is useful if you have many visualizations/dashboards.

---

<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:** [October 11, 2017, 7:48pm UTC](https://discuss.elastic.co/t/change-index-name-in-visualization/100394/8 "2017-10-11T19:48:57Z")

</div>

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