# Elasticsearch status is going to be red status when i add index

**URL:** <https://discuss.elastic.co/t/elasticsearch-status-is-going-to-be-red-status-when-i-add-index/170587>\
**Category:** Elasticsearch\
**Created:** [March 2, 2019, 1:05pm UTC](https://discuss.elastic.co/t/elasticsearch-status-is-going-to-be-red-status-when-i-add-index/170587 "2019-03-02T13:05:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dev1/32/41907_2.png) [@dev1](https://discuss.elastic.co/u/dev1)\
**Post date:** [March 2, 2019, 1:05pm UTC](https://discuss.elastic.co/t/elasticsearch-status-is-going-to-be-red-status-when-i-add-index/170587/1 "2019-03-02T13:05:53Z")

</div>

i use this api for check [http://localhost:9200/\_cluster/health?pretty](http://localhost:9200/_cluster/health?pretty)  
Output:  
{  
"cluster\_name" : "elasticsearch",  
"status" : "red",  
"timed\_out" : false,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 0,  
"active\_shards" : 0,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 10,  
"delayed\_unassigned\_shards" : 0,  
"number\_of\_pending\_tasks" : 0,  
"number\_of\_in\_flight\_fetch" : 0,  
"task\_max\_waiting\_in\_queue\_millis" : 0,  
"active\_shards\_percent\_as\_number" : 0.0  
}

and i also use [http://localhost:9200/\_cat/shards](http://localhost:9200/_cat/shards)  
product 4 p UNASSIGNED  
product 4 r UNASSIGNED  
product 3 p UNASSIGNED  
product 3 r UNASSIGNED  
product 1 p UNASSIGNED  
product 1 r UNASSIGNED  
product 2 p UNASSIGNED  
product 2 r UNASSIGNED  
product 0 p UNASSIGNED  
product 0 r UNASSIGNED

what should i do for healthy output.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 2, 2019, 1:18pm UTC](https://discuss.elastic.co/t/elasticsearch-status-is-going-to-be-red-status-when-i-add-index/170587/2 "2019-03-02T13:18:33Z")

</div>

What did you do to go to that state?

If the data is not important, then just drop the index:

```auto
DELETE product

```

---

<div class="post-metadata">

**Author:** ![dev1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dev1/32/41907_2.png) [@dev1](https://discuss.elastic.co/u/dev1)\
**Post date:** [March 8, 2019, 12:16pm UTC](https://discuss.elastic.co/t/elasticsearch-status-is-going-to-be-red-status-when-i-add-index/170587/3 "2019-03-08T12:16:19Z")

</div>

i did the same i drop index but after that i also face same problem.

then after i uninstall elasticsearch and again install that is work for me.

---

<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:** [April 5, 2019, 12:16pm UTC](https://discuss.elastic.co/t/elasticsearch-status-is-going-to-be-red-status-when-i-add-index/170587/4 "2019-04-05T12:16:20Z")

</div>

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