# Elasticsearch health status is yellow. How to up Green?

**URL:** <https://discuss.elastic.co/t/elasticsearch-health-status-is-yellow-how-to-up-green/81765>\
**Category:** Elasticsearch\
**Created:** [April 10, 2017, 8:05am UTC](https://discuss.elastic.co/t/elasticsearch-health-status-is-yellow-how-to-up-green/81765 "2017-04-10T08:05:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvnages](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bvnages](https://discuss.elastic.co/u/bvnages)\
**Post date:** [April 10, 2017, 8:05am UTC](https://discuss.elastic.co/t/elasticsearch-health-status-is-yellow-how-to-up-green/81765/1 "2017-04-10T08:05:07Z")

</div>

{  
"cluster\_name" : "elasticsearch",  
"status" : "yellow",  
"timed\_out" : false,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 6,  
"active\_shards" : 6,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 6,  
"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" : 50.0  
}

Could you please help me.

---

<div class="post-metadata">

**Author:** ![kab](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kab](https://discuss.elastic.co/u/kab)\
**Post date:** [April 10, 2017, 8:11am UTC](https://discuss.elastic.co/t/elasticsearch-health-status-is-yellow-how-to-up-green/81765/2 "2017-04-10T08:11:33Z")

</div>

The Yellow status means that there is a risk of losing data if something goes wrong with your shards.

To get it green you should at least have another node. I mean you should create a cluster.

Kab,

---

<div class="post-metadata">

**Author:** ![bvnages](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bvnages](https://discuss.elastic.co/u/bvnages)\
**Post date:** [April 10, 2017, 8:12am UTC](https://discuss.elastic.co/t/elasticsearch-health-status-is-yellow-how-to-up-green/81765/3 "2017-04-10T08:12:28Z")

</div>

Thanks for reply.

But how to create cluster.  
Which location we create the cluster.  
Could you please tell me.

---

<div class="post-metadata">

**Author:** ![kab](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kab](https://discuss.elastic.co/u/kab)\
**Post date:** [April 10, 2017, 8:29am UTC](https://discuss.elastic.co/t/elasticsearch-health-status-is-yellow-how-to-up-green/81765/4 "2017-04-10T08:29:04Z")

</div>

it's not a complicated thing  
You can read more on this link 🙂

> <https://stackoverflow.com/questions/16821101/how-to-set-up-es-cluster>

---

<div class="post-metadata">

**Author:** ![bvnages](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bvnages](https://discuss.elastic.co/u/bvnages)\
**Post date:** [April 10, 2017, 9:02am UTC](https://discuss.elastic.co/t/elasticsearch-health-status-is-yellow-how-to-up-green/81765/5 "2017-04-10T09:02:54Z")

</div>

Thanks ,

In my prospective I am not using nodes.We installed directly through yum .  
You are giving that url we need to change config file.But config file is not here.  
Could you please tell me.

---

<div class="post-metadata">

**Author:** ![kab](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kab](https://discuss.elastic.co/u/kab)\
**Post date:** [April 10, 2017, 9:26am UTC](https://discuss.elastic.co/t/elasticsearch-health-status-is-yellow-how-to-up-green/81765/6 "2017-04-10T09:26:59Z")

</div>

The machine you installed Elastic on is considered as a Node (one-node). You should install another instance of Elastic  
in another machine (or VM) - you can simply copy the current installation to another machine. And modify the config files of the two instances to communicate together. The config file should be in the installation directory of your Elastic. An finally, when you create your indices you specify the number of replicate (example if you have 3 nodes then you can set the number of replicates to 2 or 3). Hope this will help.

---

<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:** [April 10, 2017, 12:08pm UTC](https://discuss.elastic.co/t/elasticsearch-health-status-is-yellow-how-to-up-green/81765/7 "2017-04-10T12:08:04Z")

</div>

Or set the number of replicas to 0 for each index.  
Or ignore this. It's not that important if you want only one node.

---

<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:** [May 8, 2017, 12:20pm UTC](https://discuss.elastic.co/t/elasticsearch-health-status-is-yellow-how-to-up-green/81765/8 "2017-05-08T12:20:45Z")

</div>

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