# Re-Index the corrupted index (i.e. status in RED )in Elastic Search and turn into GREEN

**URL:** <https://discuss.elastic.co/t/re-index-the-corrupted-index-i-e-status-in-red-in-elastic-search-and-turn-into-green/200119>\
**Category:** Elasticsearch\
**Created:** [September 19, 2019, 6:12am UTC](https://discuss.elastic.co/t/re-index-the-corrupted-index-i-e-status-in-red-in-elastic-search-and-turn-into-green/200119 "2019-09-19T06:12:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_Raj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joseph_raj/32/46850_2.png) [@Joseph\_Raj](https://discuss.elastic.co/u/Joseph_Raj)\
**Post date:** [September 19, 2019, 6:12am UTC](https://discuss.elastic.co/t/re-index-the-corrupted-index-i-e-status-in-red-in-elastic-search-and-turn-into-green/200119/1 "2019-09-19T06:12:15Z")

</div>

![Denmod_Status_19092019](https://us1.discourse-cdn.com/elastic/original/3X/6/2/627235b9e869f6ac024df4d03430510959d5aaaf.png)

As per the attached screenshot, we could see 2 indices are in red status. So we checked what is the exact error for those 2 indices, as we see error is - "Cannot allocate as the primary shards is corrupted" However, we tried to allocate manually thro running index reroute command but still we could see the index in red status.

So our last option was to re-index the current 2 bad indices as shown in screenshots. so that we can retrieve the data from db & re-index the same using elastic search.  
Kindly help us to proceed on re-index process.

or Could you help us the other possible approach to proceed further.

Thanks in advance.

---

<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 17, 2019, 6:12am UTC](https://discuss.elastic.co/t/re-index-the-corrupted-index-i-e-status-in-red-in-elastic-search-and-turn-into-green/200119/2 "2019-10-17T06:12:32Z")

</div>

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