# How to update rollover conditions for a lifecycle policy?

**URL:** <https://discuss.elastic.co/t/how-to-update-rollover-conditions-for-a-lifecycle-policy/256343>\
**Category:** Kibana\
**Created:** [November 23, 2020, 10:23am UTC](https://discuss.elastic.co/t/how-to-update-rollover-conditions-for-a-lifecycle-policy/256343 "2020-11-23T10:23:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kenn/32/79507_2.png) [@Kenn](https://discuss.elastic.co/u/Kenn)\
**Post date:** [November 23, 2020, 10:23am UTC](https://discuss.elastic.co/t/how-to-update-rollover-conditions-for-a-lifecycle-policy/256343/1 "2020-11-23T10:23:54Z")

</div>

I have a metricbeat index ,metricbeat-7.9.1-2020.11.23-000001, and I would like to update the max size condition for the rollover action.

The response from /\_ilm/explain :

```auto
 {
    "indices": {
        "metricbeat-7.9.1-2020.11.23-000001": {
            "index": "metricbeat-7.9.1-2020.11.23-000001",
            "managed": true,
            "policy": "metricbeat",
            "lifecycle_date_millis": 1606114916403,
            "age": "2.95h",
            "phase": "hot",
            "phase_time_millis": 1606114916623,
            "action": "rollover",
            "action_time_millis": 1606115276483,
            "step": "check-rollover-ready",
            "step_time_millis": 1606115276483,
            "phase_execution": {
                "policy": "metricbeat",
                "phase_definition": {
                    "min_age": "0ms",
                    "actions": {
                        "rollover": {
                            "max_size": "50gb",
                            "max_age": "30d"
                        }
                    }
                },
                "version": 1,
                "modified_date_in_millis": 1605970574710
            }
        }
    }
}

```

Currently the max\_size is 50G. Where , if possible, on Kibana can I update the rollover conditions ?  
I can only find the condition settings for the phase of the policy.

If this is not possible through the UI , is there a request that can achieve this ?

---

<div class="post-metadata">

**Author:** ![afharo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/afharo/32/75202_2.png) [@afharo](https://discuss.elastic.co/u/afharo)\
**Post date:** [November 23, 2020, 12:49pm UTC](https://discuss.elastic.co/t/how-to-update-rollover-conditions-for-a-lifecycle-policy/256343/2 "2020-11-23T12:49:32Z")

</div>

Hi @Kenn,

Kibana provides a UI to help you manage the existing ILM policies in your cluster in the Stack Management section

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

In this case, the policy you are looking for is `metricbeat`:

> [@Kenn](#):
>
> `"policy": "metricbeat"`

More info about this: [ILM: Manage the index lifecycle | Elasticsearch Guide [7.10] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/index-lifecycle-management.html)

---

<div class="post-metadata">

**Author:** ![Kenn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kenn/32/79507_2.png) [@Kenn](https://discuss.elastic.co/u/Kenn)\
**Post date:** [November 25, 2020, 7:12am UTC](https://discuss.elastic.co/t/how-to-update-rollover-conditions-for-a-lifecycle-policy/256343/3 "2020-11-25T07:12:07Z")

</div>

@afharo Thank you. I did already set the conditions there, yet it did not work.

What I did do to get it working was to force a rollover :

```auto
/:alias/_rollover/:index 

```

Seems like the old index was on a older version of the policy.

---

<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:** [December 23, 2020, 7:12am UTC](https://discuss.elastic.co/t/how-to-update-rollover-conditions-for-a-lifecycle-policy/256343/4 "2020-12-23T07:12:10Z")

</div>

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