# How can verify all the indexes in available after import from old server to new server

**URL:** <https://discuss.elastic.co/t/how-can-verify-all-the-indexes-in-available-after-import-from-old-server-to-new-server/160097>\
**Category:** Elasticsearch\
**Created:** [December 10, 2018, 5:21am UTC](https://discuss.elastic.co/t/how-can-verify-all-the-indexes-in-available-after-import-from-old-server-to-new-server/160097 "2018-12-10T05:21:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuwan/32/42325_2.png) [@nuwan](https://discuss.elastic.co/u/nuwan)\
**Post date:** [December 10, 2018, 5:21am UTC](https://discuss.elastic.co/t/how-can-verify-all-the-indexes-in-available-after-import-from-old-server-to-new-server/160097/1 "2018-12-10T05:21:44Z")

</div>

Hi Team

I have used following method to import index from (IngestionDemo 172.24.36.216) to Elasticdemo (172.24.36.204) . Now I need to verify all the indexes are available in ElasticDemo (172.24.36.204)

Could you please let me know how can I do this .

elasticdump --input=http://172.24.36.216:9200/\_all --output=http://localhost:9200/ --type=mapping --limit=100

elasticdump --input=http://172.24.36.216:9200/\_all --output=hhttp://localhost:9200/ --type=data --limit=100

Thank you,

Nuwan

---

<div class="post-metadata">

**Author:** ![sandeepkanabar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandeepkanabar/32/79399_2.png) [@sandeepkanabar](https://discuss.elastic.co/u/sandeepkanabar)\
**Post date:** [December 10, 2018, 8:25am UTC](https://discuss.elastic.co/t/how-can-verify-all-the-indexes-in-available-after-import-from-old-server-to-new-server/160097/2 "2018-12-10T08:25:24Z")

</div>

Just do a `"curl 172.24.36.216:9200/_cat/indices?v&s=index"` and `"curl 172.24.36.204:9200/_cat/indices?v&s=index"` and compare the outputs. Remember that the quotes `"` are necessary in the above commands because of the use of `&` symbol.

Not only the indices, you can actually also compare the document counts as well. You can redirect the above outputs to file and do a file comparison.

---

<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:** [January 7, 2019, 8:25am UTC](https://discuss.elastic.co/t/how-can-verify-all-the-indexes-in-available-after-import-from-old-server-to-new-server/160097/3 "2019-01-07T08:25:25Z")

</div>

Closed on January 7, 2019, 8:25am UTC

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