# Index policy evaluation

**URL:** <https://discuss.elastic.co/t/index-policy-evaluation/259488>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [December 23, 2020, 1:07pm UTC](https://discuss.elastic.co/t/index-policy-evaluation/259488 "2020-12-23T13:07:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfredo.deluca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfredo.deluca/32/95381_2.png) [@alfredo.deluca](https://discuss.elastic.co/u/alfredo.deluca)\
**Post date:** [December 23, 2020, 1:07pm UTC](https://discuss.elastic.co/t/index-policy-evaluation/259488/1 "2020-12-23T13:07:54Z")

</div>

Hi all. A very quick one. I have the following policy

> ```
> {
> “policy”: {
> “policy_id”: “Delete_older_than_60d”,
> “description”: “Changes replica count and deletes”,
> “last_updated_time”: 1608542726528,
> “schema_version”: 1,
> “error_notification”: null,
> “default_state”: “current”,
> “states”: [
> {
> “name”: “current”,
> “actions”: ,
> “transitions”: [
> {
> “state_name”: “old”,
> “conditions”: {
> “min_index_age”: “30d”
> }
> }
> ]
> },
> {
> “name”: “old”,
> “actions”: [
> {
> “replica_count”: {
> “number_of_replicas”: 0
> }
> }
> ],
> “transitions”: [
> {
> “state_name”: “delete”,
> “conditions”: {
> “min_index_age”: “40d”
> }
> }
> ]
> },
> {
> “name”: “delete”,
> “actions”: [
> {
> “delete”: {}
> }
> ],
> “transitions”: 
> }
> ]
> }
> }
> 
> ```

So what I want is remove replica and put to 0 older than 30 days then after 40 days more delete the index.

Is that right? SO the lifespan of the index is 70 days?

Cheers

> Preformatted text

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 23, 2020, 1:16pm UTC](https://discuss.elastic.co/t/index-policy-evaluation/259488/2 "2020-12-23T13:16:13Z")

</div>

This does not seem to be a valid ILM policy. If this by any chance is related to OpenDistro I would recommend raising this in their form.

---

<div class="post-metadata">

**Author:** ![alfredo.deluca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfredo.deluca/32/95381_2.png) [@alfredo.deluca](https://discuss.elastic.co/u/alfredo.deluca)\
**Post date:** [December 23, 2020, 1:25pm UTC](https://discuss.elastic.co/t/index-policy-evaluation/259488/3 "2020-12-23T13:25:20Z")

</div>

yes it is.

ok 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:** [January 20, 2021, 1:25pm UTC](https://discuss.elastic.co/t/index-policy-evaluation/259488/4 "2021-01-20T13:25:49Z")

</div>

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