# Corrupted Kibana Saved Object

**URL:** <https://discuss.elastic.co/t/corrupted-kibana-saved-object/283521>\
**Category:** Kibana\
**Tags:** kql-kibana-query-language\
**Created:** [September 7, 2021, 10:36am UTC](https://discuss.elastic.co/t/corrupted-kibana-saved-object/283521 "2021-09-07T10:36:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![msszafar](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@msszafar](https://discuss.elastic.co/u/msszafar)\
**Post date:** [September 7, 2021, 10:36am UTC](https://discuss.elastic.co/t/corrupted-kibana-saved-object/283521/1 "2021-09-07T10:36:45Z")

</div>

Hey, Can anyone please tell me how to check the corrupted saved object of kibana?  
Context: I'm intended to upgrade kibana. If any kibana saved object is corrupt then upgrade fails, so its workaround is to manually find the name of corrupt object from kibana error logs and delete it using API query. So I want to see if I could find a way to check all corrupt objects before stating upgrade. Thank you

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [September 7, 2021, 11:46am UTC](https://discuss.elastic.co/t/corrupted-kibana-saved-object/283521/2 "2021-09-07T11:46:28Z")

</div>

Let's say you upgrade from 7.13 to 7.14.  
One way that comes to my mind is to export all your saved objects in 7.13 in Stack Management/Saved objects to ndjson file and then import it in a different Kibana instance in version 7.14. This however might be more work than upgrading and deleting.

---

<div class="post-metadata">

**Author:** ![msszafar](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@msszafar](https://discuss.elastic.co/u/msszafar)\
**Post date:** [September 7, 2021, 11:58am UTC](https://discuss.elastic.co/t/corrupted-kibana-saved-object/283521/3 "2021-09-07T11:58:19Z")

</div>

I was asking like is there any command / query to check how many of saved objects are corrupted and what are they? So that I can just manually delete them before starting upgrade.

---

<div class="post-metadata">

**Author:** ![rudolf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rudolf/32/51200_2.png) [@rudolf](https://discuss.elastic.co/u/rudolf)\
**Post date:** [September 7, 2021, 3:05pm UTC](https://discuss.elastic.co/t/corrupted-kibana-saved-object/283521/4 "2021-09-07T15:05:46Z")

</div>

Hi Zafar,

There isn't currently a way to do this, but we are planning to add it. We call this a "migration dry run" and tracking it in [https://github.com/elastic/kibana/issues/55404](https://github.com/elastic/kibana/issues/55404)

It might be helpful to know that corrupt saved objects can only be created by writing directly to the `.kibana` index. If you use the saved objects HTTP API instead, you'll avoid any future corrupt documents being created.

---

<div class="post-metadata">

**Author:** ![msszafar](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@msszafar](https://discuss.elastic.co/u/msszafar)\
**Post date:** [September 8, 2021, 5:27am UTC](https://discuss.elastic.co/t/corrupted-kibana-saved-object/283521/5 "2021-09-08T05:27:43Z")

</div>

Alright! Thank you

---

<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 6, 2021, 5:28am UTC](https://discuss.elastic.co/t/corrupted-kibana-saved-object/283521/6 "2021-10-06T05:28:06Z")

</div>

Closed on October 6, 2021, 5:28am UTC

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