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

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

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.

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