# New Policy change is not being displayed on explain index

**URL:** <https://forum.opensearch.org/t/new-policy-change-is-not-being-displayed-on-explain-index/23446>\
**Category:** Index Management\
**Tags:** troubleshoot, index-management\
**Created:** [February 19, 2025, 12:27pm UTC](https://forum.opensearch.org/t/new-policy-change-is-not-being-displayed-on-explain-index/23446 "2025-02-19T12:27:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ijunaid8989](https://avatars.discourse-cdn.com/v4/letter/i/71e660/32.png) [@ijunaid8989](https://forum.opensearch.org/u/ijunaid8989)\
**Post date:** [February 19, 2025, 12:27pm UTC](https://forum.opensearch.org/t/new-policy-change-is-not-being-displayed-on-explain-index/23446/1 "2025-02-19T12:27:57Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
latest

**Describe the issue** :  
I have some indexes,

1. I added the policy as

```auto
    %{
      "policy" => %{
        "description" => "ISM Policy for rollover and deletion",
        "default_state" => "hot",
        "states" => [
          %{
            "name" => "hot",
            "actions" => [
              %{
                "rollover" => %{
                  "min_index_age" => "30d",
                  "min_doc_count" => 100_000
                }
              }
            ],
            "transitions" => [
              %{
                "state_name" => "delete",
                "conditions" => %{
                  "min_index_age" => "30d"
                }
              }
            ]
          },
          %{
            "name" => "delete",
            "actions" => [
              %{
                "delete" => %{}
              }
            ]
          }
        ],
        "ism_template" => %{
          "index_patterns" => ["benefits_program_user-*"]
        }
      }
    }

```

everything is good and rollover is setup as well.

but Now I want to change my policy. So I changed my policy such as

```auto
    %{
      "policy" => %{
        "description" => "ISM Policy for rollover and deletion",
        "default_state" => "hot",
        "states" => [
          %{
            "name" => "hot",
            "actions" => [
              %{
                "rollover" => %{
                  "min_index_age" => "10d"
                }
              }
            ],
            "transitions" => [
              %{
                "state_name" => "delete",
                "conditions" => %{
                  "min_index_age" => "10d"
                }
              }
            ]
          },
          %{
            "name" => "delete",
            "actions" => [
              %{
                "delete" => %{}
              }
            ]
          }
        ],
        "ism_template" => %{
          "index_patterns" => ["benefits_program_user-*"]
        }
      }
    }

```

What I did was I first updated the policy.  
then made a post request to the index with policy id

```auto

curl --location 'localhost:9200/_plugins/_ism/change_policy/benefits_program_user-*' \
--header 'Content-Type: application/json' \
--data '{
  "policy_id": "benefits_program_user_policy",
  "state": "delete",
  "include": [
    {
      "state": "hot"
    }
  ]
}'

```

response as

```auto
{
    "updated_indices": 1,
    "failures": false,
    "failed_indices": []
}

```

no errors but when I explain the index it still uses the old policy attached to it

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/a/ac6ca88d87dcc80595e53039090b8296f16cd813.png)

where as the policy has been updated

what I am doing wrong, can anyone please point?

**Configuration** :  
docker run -p 9200:9200 -p 9600:9600 -e “discovery.type=single-node” -e “OPENSEARCH\_INITIAL\_ADMIN\_PASSWORD=ABCECFG123@” -e “plugins.security.disabled=true” opensearchproject/opensearch:latest

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![nateynate](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/nateynate/32/4913_2.png) [@nateynate](https://forum.opensearch.org/u/nateynate)\
**Post date:** [February 19, 2025, 9:43pm UTC](https://forum.opensearch.org/t/new-policy-change-is-not-being-displayed-on-explain-index/23446/2 "2025-02-19T21:43:05Z")

</div>

> [@ijunaid8989](#):
>
> what I am doing wrong, can anyone please point?

I don’t think you’re doing anything wrong, but there’s usually a policy version associated with a policy managed index. Does the UI give you any hints that the policy might have a newer version?

Perhaps try removing that policy from the index and then re-applying it to make sure it gets the most recent version .

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [April 20, 2025, 9:43pm UTC](https://forum.opensearch.org/t/new-policy-change-is-not-being-displayed-on-explain-index/23446/3 "2025-04-20T21:43:59Z")

</div>

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