# ILM Warm phase settings

**URL:** https://discuss.elastic.co/t/ilm-warm-phase-settings/236703
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [June 11, 2020, 12:36pm UTC](https://discuss.elastic.co/t/ilm-warm-phase-settings/236703 "2020-06-11T12:36:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Viktor\_Markvardt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/viktor_markvardt/32/69955_2.png) [@Viktor\_Markvardt](https://discuss.elastic.co/u/Viktor_Markvardt)
#### Post date: [June 11, 2020, 12:36pm UTC](https://discuss.elastic.co/t/ilm-warm-phase-settings/236703/1 "2020-06-11T12:36:57Z")

</div>

Hi guys,

I created an index lifecycle policy for warm phase, but I can not understand where new documents are?  
My goal is: move old documents to read-only indexes.  
Please see details below:

```auto
    PUT _ilm/policy/ro
    {
    "policy": {
        "phases": {
            "hot": {
                "min_age": "0ms",
                "actions": {
                    "rollover": {
                        "max_age": "1m",
                        "max_size": "50gb"
                    },
                    "set_priority": {
                        "priority": 50
                    }
                }
            },
            "warm": {
                "actions": {
                    "shrink": {
                        "number_of_shards": 1
                    },
                    "forcemerge": {
                        "max_num_segments": 1
                    },
                    "set_priority": {
                        "priority": 100
                    }
                }
            }
        }
    }
}

```

```auto
PUT _template/ro_t
{
    "index_patterns": [
        "log_events_store*"
    ],
    "settings": {
        "number_of_shards": 1,
        "number_of_replicas": 1,
        "index.lifecycle.name": "ro",
        "index.lifecycle.rollover_alias": "ro_a"
    }
}

```

```auto
    PUT log_events_store-000001
    {
        "aliases": {
            "ro_a": {
                "is_write_index": true
            }
        }
    }

```

Peridiocally I see new indexes like log\_events\_store-000001, log\_events\_store-000002 and so on, but each of them is empty (Docs count is 0). Generating of documents continue without any pause to index log\_events\_store.

Any ideas what I did wrong?

---

<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: [July 9, 2020, 12:51pm UTC](https://discuss.elastic.co/t/ilm-warm-phase-settings/236703/2 "2020-07-09T12:51:15Z")

</div>

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