Elasticsearch health status is yellow. How to up Green?

"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.

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.


Thanks for reply.

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

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

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.

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.

1 Like

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.


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