# ISM policy intermittently not attaching to newly created indices in OpenSearch

**URL:** <https://forum.opensearch.org/t/ism-policy-intermittently-not-attaching-to-newly-created-indices-in-opensearch/27754>\
**Category:** Index Management\
**Tags:** troubleshoot, index-management\
**Created:** [January 20, 2026, 11:24am UTC](https://forum.opensearch.org/t/ism-policy-intermittently-not-attaching-to-newly-created-indices-in-opensearch/27754 "2026-01-20T11:24:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChaithC](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@ChaithC](https://forum.opensearch.org/u/ChaithC)\
**Post date:** [January 20, 2026, 11:24am UTC](https://forum.opensearch.org/t/ism-policy-intermittently-not-attaching-to-newly-created-indices-in-opensearch/27754/1 "2026-01-20T11:24:05Z")

</div>

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

OpenSearch version: 2.19.0

OpenSearch Dashboard version: 2.17.0

**Describe the issue** :

We have defined an ISM policy and configured it through index templates.

We observed that for a few indices, the ISM policy is not getting attached, even though:

- The ISM policy existed before index creation

- The index template correctly references the policy

- Most indices get the policy attached successfully

However, a small number of indices are created without any ISM policy attached.

This behavior appears to be random and inconsistent. Same ISM policy, same index pattern, same source of index creation but no identifiable pattern based on time or index name. These indices remain unmanaged unless the policy is manually attached later.

We suspect this could be related to a race condition or a bug in ISM’s background policy attachment mechanism.

**Questions:**

- Is this a known issue in OpenSearch ISM?

- Are there known race conditions or scheduler limitations that could cause this?

- Are there recommended safeguards or workarounds?

**Configuration** :

One of the use cases is here:

```yaml
opensearch-configs:
  ismPolicies:
    - name: proxy-sftp-access-ism-policy
      description: sftp proxy access index management policy
      defaultState: init
      ismTemplate:
        indexPatterns:
          - proxy-sftp_access*
        priority: 100
      states:
        - name: init
          actions: []
          transitions:
            - stateName: delete
              conditions:
                minIndexAge: 120d
        - name: delete
          actions:
            - delete: {}

```

**Relevant Logs or Screenshots** :

 ![image-2026-01-08-16-25-56-408](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/8/867e99ac3d1c6da607b9f91d5c1694e5b37cf0b1.png)

---

<div class="post-metadata">

**Author:** ![Anthony](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/anthony/32/9939_2.png) [@Anthony](https://forum.opensearch.org/u/Anthony)\
**Post date:** [March 16, 2026, 1:31pm UTC](https://forum.opensearch.org/t/ism-policy-intermittently-not-attaching-to-newly-created-indices-in-opensearch/27754/2 "2026-03-16T13:31:50Z")

</div>

@ChaithC I’m not able to reproduce this. I would recommend to increase the logging using the following and provide the logging generated.

```auto
PUT /_cluster/settings
{
  "transient": {
    "logger.org.opensearch.indexmanagement.indexstatemanagement.ManagedIndexCoordinator": "DEBUG",
    "logger.org.opensearch.indexmanagement.indexstatemanagement.ManagedIndexRunner": "DEBUG"
  }
}

```

Can you also provide the returned values of the below, using one of the indices that were not attached to the policy:

```auto
GET /.opendistro-ism-config/_doc/<uuid of the index>?pretty

```

Have you tested this with later versions of opensearch, as there were some overall improvements made in versions 3.x which might have any impact on this.

---

<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:** [May 15, 2026, 1:32pm UTC](https://forum.opensearch.org/t/ism-policy-intermittently-not-attaching-to-newly-created-indices-in-opensearch/27754/3 "2026-05-15T13:32:40Z")

</div>

Closed on May 15, 2026, 1:32pm UTC

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