# Kibana Visualization Deleted Index

**URL:** <https://discuss.elastic.co/t/kibana-visualization-deleted-index/149513>\
**Category:** Kibana\
**Created:** [September 21, 2018, 8:00pm UTC](https://discuss.elastic.co/t/kibana-visualization-deleted-index/149513 "2018-09-21T20:00:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [September 21, 2018, 8:00pm UTC](https://discuss.elastic.co/t/kibana-visualization-deleted-index/149513/1 "2018-09-21T20:00:52Z")

</div>

I had to delete the elasticsearch index on our system and then recreate it, I thought as long as the index was called the same etc, Kibana Visualizations will keep running. I recreated the index in Kibana and the visualizations complain that it doesn't exist, and that I should recreate it. But the index it wants me to recreate is the EXACT same index that already exists. What needs to happen here?

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [September 21, 2018, 9:26pm UTC](https://discuss.elastic.co/t/kibana-visualization-deleted-index/149513/2 "2018-09-21T21:26:34Z")

</div>

Visualizations are saved with the unique ID associated with an index pattern. You've deleted the index pattern and then re-created it. Even though it has the same name, it was given a new ID. This ID appears in the URL bar when you select the index pattern in "Management - Index Patterns".

 ![14%20PM](https://us1.discourse-cdn.com/elastic/original/3X/1/0/100936826ba53a81df690f9d041b6d8f1bf17141.png)

You'll need to change the ID in each of your visualizations by finding and editing them in "Management - Saved Objects". [See the third bullet in this section](https://www.elastic.co/guide/en/kibana/current/managing-saved-objects.html#managing-saved-objects-object-definition).

If you have a lot of visualizations, you might use the "Export \<#\> objects" link in the "Saved Objects" to download a JSON config file. You can then do a "Find and Replace" in your text editor to change the ID in that file and then import it from the "Management - Saved Objects" page. Be careful and keep a backup of the original JSON file just in case something goes wrong.

---

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [September 21, 2018, 9:46pm UTC](https://discuss.elastic.co/t/kibana-visualization-deleted-index/149513/3 "2018-09-21T21:46:00Z")

</div>

I see the index showing the name and not ID see below

> "kibanaSavedObjectMeta": {  
> "searchSourceJSON": "{"index":"accounts\*","filter":[{"meta":{"index":"accounts\*","negate":true,"disabled":false,"alias":null,"type":"phrase","key":"age","value":"-30","params":{"query":-30,"type":"phrase"}},"query":{"match":{"age":{"query":-30,"type":"phrase"}}},"$state":{"store":"appState"}}],"query":{"query":"","language":"lucene"}}"

---

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [October 10, 2018, 2:11pm UTC](https://discuss.elastic.co/t/kibana-visualization-deleted-index/149513/4 "2018-10-10T14:11:55Z")

</div>

I reimported all my dashboards and it asked me to remap

---

<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:** [November 7, 2018, 2:18pm UTC](https://discuss.elastic.co/t/kibana-visualization-deleted-index/149513/5 "2018-11-07T14:18:16Z")

</div>

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