# Saved search no longer working after pattern change

**URL:** <https://discuss.elastic.co/t/saved-search-no-longer-working-after-pattern-change/236842>\
**Category:** Kibana\
**Created:** [June 12, 2020, 7:28am UTC](https://discuss.elastic.co/t/saved-search-no-longer-working-after-pattern-change/236842 "2020-06-12T07:28:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![calanon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/calanon/32/64004_2.png) [@calanon](https://discuss.elastic.co/u/calanon)\
**Post date:** [June 12, 2020, 7:28am UTC](https://discuss.elastic.co/t/saved-search-no-longer-working-after-pattern-change/236842/1 "2020-06-12T07:28:46Z")

</div>

I have a lot of saved searches. With my lack of knowledge I removed the main index pattern and recreated the pattern to the same index. Now my saved searches are reporting that they cannot find the id of the old index pattern.

**What did I try?**

I exported the index and changed the "id" to the id of the old pattern hoping this would work. But it didn't.

Also I exported the saved search and deleted it from kibana. Then re-imported it. Again this didn't work.

Is there something else I can do? If I only had a few saved searches I would not be bothered but I have a lot and it would take a long time to make them all again.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [June 12, 2020, 7:58am UTC](https://discuss.elastic.co/t/saved-search-no-longer-working-after-pattern-change/236842/2 "2020-06-12T07:58:38Z")

</div>

Saved searches reference their parent index pattern by a UUID, that's why re-creating them with the same matching pattern didn't work.

You should be able to get to a working state again like this:

- Delete the new main index pattern again
- Look up the id of the index pattern the saved searches are referencing in the saved object management using "Inspect" (you probably already have it)
- Recreate the main index pattern again, but when it gets to Step 2, expand "Advanced options". Here you can specify the ID. Use the old id the saved objects are already referencing:  
 ![Screenshot 2020-06-12 at 09.57.31](https://us1.discourse-cdn.com/elastic/original/3X/2/2/2272aa3f626f8b444c40e176a0e06ed723d2ec0b.png)

---

<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:** [July 10, 2020, 7:58am UTC](https://discuss.elastic.co/t/saved-search-no-longer-working-after-pattern-change/236842/3 "2020-07-10T07:58:39Z")

</div>

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