# Elasticsearch cluster in Yellow state and 1 Unassigned Shard

**URL:** https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290
**Category:** Elasticsearch
**Created:** [September 2, 2020, 9:26pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290 "2020-09-02T21:26:19Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [September 2, 2020, 9:26pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/1 "2020-09-02T21:26:19Z")

</div>

Hi All,

I am running ELK 7.6.2 stack.

Recently the cluster state went "Yellow" and it started showing one Unassigned Shard. Please see below:

```auto
{
  "cluster_name" : "elkcluster-prod",
  "status" : "yellow",
  "timed_out" : false,
  "number_of_nodes" : 8,
  "number_of_data_nodes" : 5,
  "active_primary_shards" : 187,
  "active_shards" : 373,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 1,
  "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" : 99.73262032085562
}

```

On checking cluster allocation I see the following (showing a snippet as output is long):

`curl -u test:abcd -XGET http://<servername>:<port>/_cluster/allocation/explain?pretty`

```auto
{
  "index" : "prod_test_access-2020.09.02",
  "shard" : 0,
  "primary" : false,
  "current_state" : "unassigned",
  "unassigned_info" : {
    "reason" : "ALLOCATION_FAILED",
    "at" : "2020-09-02T09:27:29.313Z",
    "failed_allocation_attempts" : 5,
    "details" : "failed shard on node [f23KRLGNRQiN8pHojqf_vg]: failed to perform indices:data/write/bulk[s] on replica [prod_test_access-2020.09.02][0], node[f23KRLGNRQiN8pHojqf_vg], [R], recovery_source[peer recovery], s[INITIALIZING], a[id=piAWhp74QhGZ7O5BjZwxpA], unassigned_info[[reason=ALLOCATION_FAILED], at[2020-09-02T09:25:39.789Z], failed_attempts[4], failed_nodes[[Tnji584ORvqllqH61AjLcQ, f23KRLGNRQiN8pHojqf_vg]], delayed=false, details[failed shard on node [Tnji584ORvqllqH61AjLcQ]: failed to perform indices:data/write/bulk[s] on replica [prod_test_access-2020.09.02][0], node[Tnji584ORvqllqH61AjLcQ], [R], recovery_source[peer recovery], s[INITIALIZING], a[id=NFp5yzjhSaWrd06501MSrQ], unassigned_info[[reason=ALLOCATION_FAILED], at[2020-09-02T09:25:12.236Z], failed_attempts[3], failed_nodes[[Tnji584ORvqllqH61AjLcQ, f23KRLGNRQiN8pHojqf_vg]], delayed=false, details[failed shard on node [f23KRLGNRQiN8pHojqf_vg]: failed to perform indices:data/write/bulk[s] on replica [prod_test_access-2020.09.02][0], node[f23KRLGNRQiN8pHojqf_vg], [R], recovery_source[peer recovery], s[INITIALIZING], a[id=Rfdtjx3SRRCx66LJ-purBA], unassigned_info[[reason=ALLOCATION_FAILED], at[2020-09-02T09:23:25.732Z], failed_attempts[2], failed_nodes[[Tnji584ORvqllqH61AjLcQ]], delayed=false, details[failed shard on node [Tnji584ORvqllqH61AjLcQ]: failed to perform indices:data/write/bulk[s] on replica [prod_test_access-2020.09.02][0], node[Tnji584ORvqllqH61AjLcQ], [R], recovery_source[peer recovery], s[INITIALIZING], a[id=3jUmAt62QqyD-j6deRhhTA], unassigned_info[[reason=ALLOCATION_FAILED], at[2020-09-02T09:13:58.784Z], failed_attempts[1], delayed=false, details[failed shard on node [f23KRLGNRQiN8pHojqf_vg]: failed to perform indices:data/write/bulk[s] on replica [prod_test_access-2020.09.02][0], node[f23KRLGNRQiN8pHojqf_vg], [R], s[STARTED], a[id=hnugEI7_R9m5GuCj3ai2nA], failure RemoteTransportException[[xxx-xxx-xxx][123-345-567:9300][indices:data/write/bulk[s][r]]]; nested: CircuitBreakingException[[parent] Data too large, data for [<transport_request>] would be [989108536/943.2mb], which is larger than the limit of [986061209/940.3mb], real usage: [988766312/942.9mb], new bytes reserved: [342224/334.2kb], usages [request=0/0b, fielddata=560/560b, in_flight_requests=346026/337.9kb, accounting=177727442/169.4mb]]; ], allocation_status[no_attempt]], expected_shard_size[26613176043], failure RemoteTransportException[[xxx-xxx-xxx][123-345-567:9300][indices:data/write/bulk[s][r]]]; nested: CircuitBreakingException[[parent] Data too large, data for [<transport_request>] would be [991023452/945.1mb], which is larger than the limit of [986061209/940.3mb], real usage: [990885000/944.9mb], new bytes reserved: [138452/135.2kb], usages [request=0/0b, fielddata=609/609b, in_flight_requests=138452/135.2kb, accounting=185692887/177mb]]; ], allocation_status[no_attempt]], expected_shard_size[20582000349], failure RemoteTransportException[[xxx-xxx-xxx][123-345-567:9300][indices:data/write/bulk[s][r]]]; nested: ShardNotFoundException[no such shard]; ], allocation_status[no_attempt]], expected_shard_size[23170768236], failure RemoteTransportException[[xxx-xxx-xxx][123-345-567:9300][indices:data/write/bulk[s][r]]]; nested: CircuitBreakingException[[parent] Data too large, data for [<transport_request>] would be [990878280/944.9mb], which is larger than the limit of [986061209/940.3mb], real usage: [990813568/944.9mb], new bytes reserved: [64712/63.1kb], usages [request=0/0b, fielddata=609/609b, in_flight_requests=1192778/1.1mb, accounting=186306611/177.6mb]]; ], allocation_status[no_attempt]], expected_shard_size[21041947489], failure RemoteTransportException[[xxx-xxx-xxx][123-345-567:9300][indices:data/write/bulk[s][r]]]; nested: CircuitBreakingException[[parent] Data too large, data for [<transport_request>] would be [986291206/940.6mb], which is larger than the limit of [986061209/940.3mb], real usage: [986193512/940.5mb], new bytes reserved: [97694/95.4kb], usages [request=0/0b, fielddata=560/560b, in_flight_requests=1157196/1.1mb, accounting=177508929/169.2mb]]; ",
    "last_allocation_status" : "no_attempt"
  },
  "can_allocate" : "no",
  "allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes",
  "node_allocation_decisions" : [
    {
      "node_id" : "2ULg0RFsSZiaUYm4SUpDOQ",
      "node_name" : "xxx-xxx-xxx",
      "transport_address" : "56.127.96.93:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67378692096",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "max_retry",
          "decision" : "NO",
          "explanation" : "shard has exceeded the maximum number of retries [5] on failed allocation attempts - manually call [/_cluster/reroute?retry_failed=true] to retry, [unassigned_info[[reason=ALLOCATION_FAILED], at[2020-09-02T09:27:29.313Z], failed_attempts[5], failed_nodes[[Tnji584ORvqllqH61AjLcQ, f23KRLGNRQiN8pHojqf_vg]], delayed=false, details[failed shard on node [f23KRLGNRQiN8pHojqf_vg]: failed to perform indices:data/write/bulk[s] on replica [prod_test_access-2020.09.02][0], node[f23KRLGNRQiN8pHojqf_vg], [R], recovery_source[peer recovery], s[INITIALIZING], a[id=piAWhp74QhGZ7O5BjZwxpA], unassigned_info[[reason=ALLOCATION_FAILED], at[2020-09-02T09:25:39.789Z], failed_attempts[4], failed_nodes[[Tnji584ORvqllqH61AjLcQ, f23KRLGNRQiN8pHojqf_vg]], delayed=false, details[failed shard on node [Tnji584ORvqllqH61AjLcQ]: failed to perform indices:data/write/bulk[s] on replica [prod_test_access-2020.09.02][0], node[Tnji584ORvqllqH61AjLcQ], [R], recovery_source[peer recovery], s[INITIALIZING], a[id=NFp5yzjhSaWrd06501MSrQ], unassigned_info[[reason=ALLOCATION_FAILED], at[2020-09-02T09:25:12.236Z], failed_attempts[3], failed_nodes[[Tnji584ORvqllqH61AjLcQ, f23KRLGNRQiN8pHojqf_vg]], delayed=false, details[failed shard on node [f23KRLGNRQiN8pHojqf_vg]: failed to perform indices:data/write/bulk[s] on replica [prod_test_access-2020.09.02][0], node[f23KRLGNRQiN8pHojqf_vg], [R], recovery_source[peer recovery], s[INITIALIZING], a[id=Rfdtjx3SRRCx66LJ-purBA], unassigned_info[[reason=ALLOCATION_FAILED], at[2020-09-02T09:23:25.732Z], failed_attempts[2], failed_nodes[[Tnji584ORvqllqH61AjLcQ]], delayed=false, details[failed shard on node [Tnji584ORvqllqH61AjLcQ]: failed to perform indices:data/write/bulk[s] on replica [prod_test_access-2020.09.02][0], node[Tnji584ORvqllqH61AjLcQ], [R], recovery_source[peer recovery], s[INITIALIZING], a[id=3jUmAt62QqyD-j6deRhhTA], unassigned_info[[reason=ALLOCATION_FAILED], at[2020-09-02T09:13:58.784Z], failed_attempts[1], delayed=false, details[failed shard on node [f23KRLGNRQiN8pHojqf_vg]: failed to perform indices:data/write/bulk[s] on replica [prod_test_access-2020.09.02][0], node[f23KRLGNRQiN8pHojqf_vg], [R], s[STARTED], a[id=hnugEI7_R9m5GuCj3ai2nA], failure RemoteTransportException[[xxx-xxx-xxx][123-345-567:9300][indices:data/write/bulk[s][r]]]; nested: CircuitBreakingException[[parent] Data too large, data for [<transport_request>] would be [989108536/943.2mb], which is larger than the limit of [986061209/940.3mb], real usage: [988766312/942.9mb], new bytes reserved: [342224/334.2kb], usages [request=0/0b, fielddata=560/560b, in_flight_requests=346026/337.9kb, accounting=177727442/169.4mb]]; ], allocation_status[no_attempt]], expected_shard_size[26613176043], failure RemoteTransportException[[xxx-xxx-xxx][123-345-567:9300][indices:data/write/bulk[s][r]]]; nested: CircuitBreakingException[[parent] Data too large, data for [<transport_request>] would be [991023452/945.1mb], which is larger than the limit of [986061209/940.3mb], real usage: [990885000/944.9mb], new bytes reserved: [138452/135.2kb], usages [request=0/0b, fielddata=609/609b, in_flight_requests=138452/135.2kb, accounting=185692887/177mb]]; ], allocation_status[no_attempt]], expected_shard_size[20582000349], failure RemoteTransportException[[xxx-xxx-xxx][123-345-567:9300][indices:data/write/bulk[s][r]]]; nested: ShardNotFoundException[no such shard]; ], allocation_status[no_attempt]], expected_shard_size[23170768236], failure RemoteTransportException[[xxx-xxx-xxx][123-345-567:9300][indices:data/write/bulk[s][r]]]; nested: CircuitBreakingException[[parent] Data too large, data for [<transport_request>] would be [990878280/944.9mb], which is larger than the limit of [986061209/940.3mb], real usage: [990813568/944.9mb], new bytes reserved: [64712/63.1kb], usages [request=0/0b, fielddata=609/609b, in_flight_requests=1192778/1.1mb, accounting=186306611/177.6mb]]; ], allocation_status[no_attempt]], expected_shard_size[21041947489], failure RemoteTransportException[[xxx-xxx-xxx][123-345-567:9300][indices:data/write/bulk[s][r]]]; nested: CircuitBreakingException[[parent] Data too large, data for [<transport_request>] would be [986291206/940.6mb], which is larger than the limit of [986061209/940.3mb], real usage: [986193512/940.5mb], new bytes reserved: [97694/95.4kb], usages [request=0/0b, fielddata=560/560b, in_flight_requests=1157196/1.1mb, accounting=177508929/169.2mb]]; ], allocation_status[no_attempt]]]"
        }
      ]
    },
    

```

Please help on how to bring the health back to green and get rid of the unassigned shard.

I see a very high index rate in console:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/a/ca70ac26eb98fbc72a5af53fcf9f9db97ae15b0b.png)

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 2, 2020, 9:44pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/2 "2020-09-02T21:44:05Z")

</div>

You can try an empty reroute request against the index to see if that will work. Otherwise, drop the replica and then readd it.

---

<div class="post-metadata">

### Author: ![lzukel](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@lzukel](https://discuss.elastic.co/u/lzukel)
#### Post date: [September 2, 2020, 9:50pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/3 "2020-09-02T21:50:19Z")

</div>

try:

```auto
POST_cluster/reroute?retry_failed=true
```

---

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [September 2, 2020, 10:35pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/4 "2020-09-02T22:35:56Z")

</div>

Thanks. Can you please let me know the command to execute an empty reroute request against an index? Also how can I drop a replica and readd it? I am new to ELK.

Please note that i can not afford to remove/ lose any data.

Thanks

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 2, 2020, 10:41pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/5 "2020-09-02T22:41:21Z")

</div>

I would run the one that @lzukel suggested above first.

---

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [September 2, 2020, 11:16pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/6 "2020-09-02T23:16:10Z")

</div>

Thanks. The following command was run:

`POST _cluster/reroute?retry_failed=true`

It is very big output and does not fit the allowed content length of the post. Status stays as "Yellow".

Can you please let me know the command to run reroute against a single index as I know the index name that shows yellow?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 2, 2020, 11:21pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/7 "2020-09-02T23:21:06Z")

</div>

What is the output from `_cat/recovery/prod_test_access-2020.09.02?v`?

---

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [September 2, 2020, 11:31pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/8 "2020-09-02T23:31:14Z")

</div>

Ran the following:

`POST _cat/recovery/prod_test_access-2020.09.02?v`

Getting an unauthorized response. Do I need to mention user: password in the command as security is enabled?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 2, 2020, 11:36pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/9 "2020-09-02T23:36:05Z")

</div>

You need to run a `GET`, if you do it in Kibana Console you should be ok.

---

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [September 2, 2020, 11:41pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/10 "2020-09-02T23:41:56Z")

</div>

Thanks. Please see output below:

```auto
index shard time type stage source_host source_node target_host target_node repository snapshot files files_recovered files_percent files_total bytes bytes_recovered bytes_percent bytes_total translog_ops translog_ops_recovered translog_ops_percent
prod_test_access-2020.09.02 0 106ms empty_store done n/a n/a hostnameA hostnameA n/a n/a 0 0 0.0% 0 0 0 0.0% 0 0 0 100.0%

```

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 3, 2020, 12:36am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/11 "2020-09-03T00:36:21Z")

</div>

OK, it'd be worth dropping the replica and then adding it back.

```
PUT prod_test_access-2020.09.02/_settings
{ "index" : { "number_of_replicas" : 0 } }

```

And then;

```
PUT prod_test_access-2020.09.02/_settings
{ "index" : { "number_of_replicas" : 1 } }

```

And that should do it!

---

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [September 3, 2020, 1:26am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/12 "2020-09-03T01:26:01Z")

</div>

Thanks. I attempted that through the console and both the time the output was:

```auto
{
  "acknowledged" : true
}

```

Still it shows Yellow as health and the unassigned shard. I hope I was not supposed to wait longer after dropping the replica? See below:

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/6/9600cbe65f36d2a2c10768f4a537cd3eccdb3227.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/d/7d004139d2887055a945a1383031c2ba810d77e1.png)

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 3, 2020, 1:28am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/13 "2020-09-03T01:28:36Z")

</div>

Allocation is not instantaneous. What is the output from the `_cat/recovery` endpoint from above?

---

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [September 3, 2020, 1:31am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/14 "2020-09-03T01:31:53Z")

</div>

Please see below:

```auto
index shard time type stage source_host source_node target_host target_node repository snapshot files files_recovered files_percent files_total bytes bytes_recovered bytes_percent bytes_total translog_ops translog_ops_recovered translog_ops_percent
prod_test_access-2020.09.02 0 11.1m peer index hostnameA hostnameA hostnameB hostnameB n/a n/a 229 209 91.3% 229 67745704669 23951038748 35.4% 67745704669 0 0 100.0%
prod_test_access-2020.09.02 0 106ms empty_store done n/a n/a hostnameA hostnameA n/a n/a 0 0 0.0% 0 0 0 0.0% 0 0 0 100.0%

```

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 3, 2020, 1:32am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/15 "2020-09-03T01:32:26Z")

</div>

RIghto, so that indicates that the recovery process is progressing.

---

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [September 3, 2020, 1:55am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/16 "2020-09-03T01:55:19Z")

</div>

Thank you so much for the help! Its 100% done and the cluster is green now.

So we dropped the replica and then rebuilt it which took care of the unassigned Shard.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 3, 2020, 1:55am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/17 "2020-09-03T01:55:39Z")

</div>

No worries.

---

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [September 3, 2020, 1:58am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/18 "2020-09-03T01:58:45Z")

</div>

Oh it turned Yellow and shows 1 unassigned shard again!

---

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [September 3, 2020, 2:01am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/19 "2020-09-03T02:01:55Z")

</div>

And it went back to Green. I will give it some time.

Thanks for all the help

---

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [September 3, 2020, 1:15pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290/20 "2020-09-03T13:15:12Z")

</div>

Checked today and the same index for **today's** date shows Yellow status and an unassigned shard.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/f/5fbd48bccd7d2bea967b7e274377a61c94a778ba.png)

```auto
{
  "cluster_name" : "elkcluster-prod",
  "status" : "yellow",
  "timed_out" : false,
  "number_of_nodes" : 8,
  "number_of_data_nodes" : 5,
  "active_primary_shards" : 191,
  "active_shards" : 381,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 1,
  "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" : 99.73821989528795
}

```

[Next page](https://discuss.elastic.co/t/elasticsearch-cluster-in-yellow-state-and-1-unassigned-shard/247290.md?page=2)
