# Duplicate Data Views, Recreate Discover Session

**URL:** <https://discuss.elastic.co/t/duplicate-data-views-recreate-discover-session/380313>\
**Category:** Kibana\
**Tags:** visualisation\
**Created:** [July 21, 2025, 5:10pm UTC](https://discuss.elastic.co/t/duplicate-data-views-recreate-discover-session/380313 "2025-07-21T17:10:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [July 21, 2025, 5:10pm UTC](https://discuss.elastic.co/t/duplicate-data-views-recreate-discover-session/380313/1 "2025-07-21T17:10:17Z")

</div>

Hello,

I am working on shrinking spaces into one space in Elastic. I been able to move dashboards from different spaces into one space, the issue is that I have now duplicate data views.

For example:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e767dc68e002a021df146387a596a973876dcda.png)

So the simple answer is delete the non-default one. The issue is that it contains relationships to dashboards/discover session.

How can I ensure that I can replace the data view on the discover session without it being broken? In other words, replace non needed logs-\* with the logs-\*(default)

ES/Kibana: 8.18.0

---

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [July 21, 2025, 5:24pm UTC](https://discuss.elastic.co/t/duplicate-data-views-recreate-discover-session/380313/2 "2025-07-21T17:24:56Z")

</div>

I deleted the logs-\*:  
and I was able to recover the visualizations by allowing me to reselect a data view:  
BUT the saved search/discover session are not able to be recovered

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/0/50e2b09e8c0f75bfe3fc446e22fd16ef52cb7e2a.png)

---

<div class="post-metadata">

**Author:** ![Tortoise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tortoise/32/147587_2.png) [@Tortoise](https://discuss.elastic.co/u/Tortoise)\
**Post date:** [July 22, 2025, 6:30am UTC](https://discuss.elastic.co/t/duplicate-data-views-recreate-discover-session/380313/3 "2025-07-22T06:30:41Z")

</div>

Hello @erikg

I tried to reproduce similar usecase by deleting the underlying dataview & see below error :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/8/1840296c84071b67a44aa546a807c0f2b0cf26f4.png)

Now since the dataview is deleted , you can recreate the search on the available dataview & link that to the dashboard. To find what was there in the old search, you can check & try to inspect the object to see what was query/columns used to create the saved search.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/1/61f2467e598bf6e78f8156cce3a0026952afac06.png)

Thanks!!

---

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [July 22, 2025, 3:28pm UTC](https://discuss.elastic.co/t/duplicate-data-views-recreate-discover-session/380313/4 "2025-07-22T15:28:11Z")

</div>

I would say that's the best option I have. It should be a way to just reselect the data view, if the saved search's data view is deleted.

Thanks!
