# How to compare exported objects in .ndjson format from two envirornments

**URL:** <https://discuss.elastic.co/t/how-to-compare-exported-objects-in-ndjson-format-from-two-envirornments/279846>\
**Category:** Kibana\
**Created:** [July 28, 2021, 11:20am UTC](https://discuss.elastic.co/t/how-to-compare-exported-objects-in-ndjson-format-from-two-envirornments/279846 "2021-07-28T11:20:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kunal\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kunal_sharma/32/92249_2.png) [@Kunal\_Sharma](https://discuss.elastic.co/u/Kunal_Sharma)\
**Post date:** [July 28, 2021, 11:20am UTC](https://discuss.elastic.co/t/how-to-compare-exported-objects-in-ndjson-format-from-two-envirornments/279846/1 "2021-07-28T11:20:25Z")

</div>

Dear Team,  
We have multiple Kibana stacks (dev, test, prod) which are manually managed and have some differences.

We are looking for some quick help on comparing the Kibana objects from two environments and finding the differences.

Could you please let us know if there is some process which we can use to compare the .ndjson file.

Comparing them on notepad++ or other editor is cumbersome.

Regards  
Kunal

---

<div class="post-metadata">

**Author:** ![jportner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jportner/32/75692_2.png) [@jportner](https://discuss.elastic.co/u/jportner)\
**Post date:** [July 30, 2021, 3:56pm UTC](https://discuss.elastic.co/t/how-to-compare-exported-objects-in-ndjson-format-from-two-envirornments/279846/2 "2021-07-30T15:56:57Z")

</div>

Depending on what saved objects you're looking at, it will be very difficult to compare them. Each saved object type has its own unique attributes that are stored. Unfortunately there's no easy answer to compare/contrast two different saved objects. Manually looking at the difference in the JSON is the only way to really do this.

If you're looking to ensure that certain aspects of your environments are the same, you can use the [Saved Objects Management page](https://www.elastic.co/guide/en/kibana/current/managing-saved-objects.html) to export saved objects from one environment and import them into another environment. It sounds like you already exported objects seeing as you have an `.ndjson` file. Note that this will _only_ affect Kibana's saved objects, it will not affect any other data in your Elasticsearch cluster. You can use [Elasticsearch snapshots](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-restore.html) if you want to copy data from one Elasticsearch cluster to another.

---

<div class="post-metadata">

**Author:** ![Kunal\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kunal_sharma/32/92249_2.png) [@Kunal\_Sharma](https://discuss.elastic.co/u/Kunal_Sharma)\
**Post date:** [July 30, 2021, 8:19pm UTC](https://discuss.elastic.co/t/how-to-compare-exported-objects-in-ndjson-format-from-two-envirornments/279846/3 "2021-07-30T20:19:11Z")

</div>

Hello Joe,  
Thanks for your feedback

---

<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:** [August 27, 2021, 8:19pm UTC](https://discuss.elastic.co/t/how-to-compare-exported-objects-in-ndjson-format-from-two-envirornments/279846/4 "2021-08-27T20:19:38Z")

</div>

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