Changing the Cluster status

Hi,

I have indexed 3 files in Elasticsearch. The cluster health is showing RED in the head plugin and the records in the indexed file is not coming up

The screenshot of the head plugin is given below

Cluster health is given below.

{"cluster_name":"elasticsearch","status":"red","timed_out":false,"number_of_nodes":2,"number_of_data_nodes":1,"active_primary_shards":1,"active_shards":1,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":7,"number_of_pending_tasks":0,"indices":{".kibana":{"status":"yellow","number_of_shards":1,"number_of_replicas":1,"active_primary_shards":1,"active_shards":1,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":1},"hcg_inpatient_alos":{"status":"red","number_of_shards":1,"number_of_replicas":1,"active_primary_shards":0,"active_shards":0,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":2},"hcg_v_patients":{"status":"red","number_of_shards":1,"number_of_replicas":1,"active_primary_shards":0,"active_shards":0,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":2},"hcg_revenue":{"status":"red","number_of_shards":1,"number_of_replicas":1,"active_primary_shards":0,"active_shards":0,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":2}}}

Please help me in getting out of this issue. Don't know what to do

Thanks & Regards,
Sanjay Reddy

red is not good. that could due to many reason, what you can do is to go to every node in the es cluster and check the log first. you can also using bigdesk or using command line on the health status of the node, restart the node if the node is not in the cluster and wait the cluster goes into yellow state.

hth