# Index management yellow

**URL:** <https://discuss.elastic.co/t/index-management-yellow/309576>\
**Category:** Kibana\
**Created:** [July 13, 2022, 7:33pm UTC](https://discuss.elastic.co/t/index-management-yellow/309576 "2022-07-13T19:33:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khadija\_BOUDINAR1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khadija_boudinar1/32/106922_2.png) [@Khadija\_BOUDINAR1](https://discuss.elastic.co/u/Khadija_BOUDINAR1)\
**Post date:** [July 13, 2022, 7:33pm UTC](https://discuss.elastic.co/t/index-management-yellow/309576/1 "2022-07-13T19:33:27Z")

</div>

hi all,

when i create a new index some take yellow health and some take green health what's the probleme in ?

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/1/919a69e8375ba7d773be464fdd2588077d3de261.png)

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [July 13, 2022, 9:46pm UTC](https://discuss.elastic.co/t/index-management-yellow/309576/2 "2022-07-13T21:46:55Z")

</div>

Do you only have 1 node? If so this is why... If not disregard... and we can look at other reasons

If so the Yellow means that the index does not have anywhere to put the replica, you can set the replicas to 0 and it will go green.. Most indices default to 1 replica so most your indices will be yellow on a single node.

to be clear there is no harm leaving it how it is...

what does this show under the `settings`

`GET /delega`

```auto
   "settings" : {
      "index" : {
...
        "number_of_shards" : "1",
        "number_of_replicas" : "1", <!--- Set to 0

```

```auto
PUT /delega/
{
  "settings": {
    "number_of_replicas": 0
  }
}

```

Then it should go green.... OR there is no harm leaving it how it is...

---

<div class="post-metadata">

**Author:** ![Khadija\_BOUDINAR1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khadija_boudinar1/32/106922_2.png) [@Khadija\_BOUDINAR1](https://discuss.elastic.co/u/Khadija_BOUDINAR1)\
**Post date:** [July 14, 2022, 5:24am UTC](https://discuss.elastic.co/t/index-management-yellow/309576/3 "2022-07-14T05:24:19Z")

</div>

PUT/delega give a bad request 400 like this:

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "resource_already_exists_exception",
        "reason" : "index [vanne/gOsAo5RsTZqtrqpWv5U1Zw] already exists",
        "index_uuid" : "gOsAo5RsTZqtrqpWv5U1Zw",
        "index" : "delega"
      }
    ],
    "type" : "resource_already_exists_exception",
    "reason" : "index [vanne/gOsAo5RsTZqtrqpWv5U1Zw] already exists",
    "index_uuid" : "gOsAo5RsTZqtrqpWv5U1Zw",
    "index" : "delega"
  },
  "status" : 400
}

```

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [July 14, 2022, 5:54am UTC](https://discuss.elastic.co/t/index-management-yellow/309576/4 "2022-07-14T05:54:23Z")

</div>

Apologies cut-n-paste error

```auto
PUT /delega/_settings
{
  "number_of_replicas": 0
}

```

---

<div class="post-metadata">

**Author:** ![Khadija\_BOUDINAR1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khadija_boudinar1/32/106922_2.png) [@Khadija\_BOUDINAR1](https://discuss.elastic.co/u/Khadija_BOUDINAR1)\
**Post date:** [July 14, 2022, 5:17pm UTC](https://discuss.elastic.co/t/index-management-yellow/309576/5 "2022-07-14T17:17:15Z")

</div>

it works well thanks

---

<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:** [August 11, 2022, 5:17pm UTC](https://discuss.elastic.co/t/index-management-yellow/309576/6 "2022-08-11T17:17:53Z")

</div>

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