# How to leave the indices in mode read write in phase warm after to pass shrink process

**URL:** <https://discuss.elastic.co/t/how-to-leave-the-indices-in-mode-read-write-in-phase-warm-after-to-pass-shrink-process/247879>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [September 8, 2020, 11:24am UTC](https://discuss.elastic.co/t/how-to-leave-the-indices-in-mode-read-write-in-phase-warm-after-to-pass-shrink-process/247879 "2020-09-08T11:24:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Moya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_moya/32/48742_2.png) [@David\_Moya](https://discuss.elastic.co/u/David_Moya)\
**Post date:** [September 8, 2020, 11:24am UTC](https://discuss.elastic.co/t/how-to-leave-the-indices-in-mode-read-write-in-phase-warm-after-to-pass-shrink-process/247879/1 "2020-09-08T11:24:07Z")

</div>

I need to have the indices with permissions of read and write in the phase warm because I still receive old indices that they can't write over indices in phase warm.

NOTE: in the phase warm the shrink process is selected.

How to can I change read only to read and write?

thank you.

---

<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 9, 2020, 12:09am UTC](https://discuss.elastic.co/t/how-to-leave-the-indices-in-mode-read-write-in-phase-warm-after-to-pass-shrink-process/247879/2 "2020-09-09T00:09:26Z")

</div>

Welcome to our community! 😃

What does your existing policy look like?

---

<div class="post-metadata">

**Author:** ![David\_Moya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_moya/32/48742_2.png) [@David\_Moya](https://discuss.elastic.co/u/David_Moya)\
**Post date:** [September 9, 2020, 7:51am UTC](https://discuss.elastic.co/t/how-to-leave-the-indices-in-mode-read-write-in-phase-warm-after-to-pass-shrink-process/247879/3 "2020-09-09T07:51:07Z")

</div>

Hello warkolm,

Here you are my ilm policy:

```auto
    PUT _ilm/policy/customerlog-cef
    {
      "policy": {
        "phases": {
          "hot": {
            "min_age": "0ms",
            "actions": {
              "set_priority": {
                "priority": 100
              }
            }
          },
          "warm": {
            "min_age": "28h",
            "actions": {
              "allocate": {
                "number_of_replicas": 1,
                "include": {},
                "exclude": {},
                "require": {
                  "box_type": "warm"
                }
              },
              "set_priority": {
                "priority": 50
              },
              "shrink": {
                "number_of_shards": 1
              }
            }
          },
          "cold": {
            "min_age": "4d",
            "actions": {
              "allocate": {
                "number_of_replicas": 1,
                "include": {},
                "exclude": {},
                "require": {
                  "box_type": "cold"
                }
              },
              "set_priority": {
                "priority": 0
              }
            }
          }
        }
      }
    }

```

Thank you!

---

<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:** [October 7, 2020, 7:51am UTC](https://discuss.elastic.co/t/how-to-leave-the-indices-in-mode-read-write-in-phase-warm-after-to-pass-shrink-process/247879/4 "2020-10-07T07:51:11Z")

</div>

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