Does ISM apply to system indices with the use of '*' index pattern?

Hi,

I have not been able to find any information regarding if ISM policys by default are applied to hidden/system indices as well when using the index-pattern ‘*’?

Example policy:

{
    "id": "del_90_days",
    "seqNo": 96,
    "primaryTerm": 1,
    "policy": {
        "policy_id": "del_90_days",
        "description": "Simple default policy, just one state where we delete all indices older than 90 days from creation date.\n\nThis is applied to all new indices.",
        "last_updated_time": 1642167385603,
        "schema_version": 12,
        "error_notification": null,
        "default_state": "hot",
        "states": [
            {
                "name": "hot",
                "actions": [],
                "transitions": [
                    {
                        "state_name": "cold",
                        "conditions": {
                            "min_index_age": "90d"
                        }
                    }
                ]
            },
            {
                "name": "cold",
                "actions": [
                    {
                        "retry": {
                            "count": 2,
                            "backoff": "exponential",
                            "delay": "1h"
                        },
                        "delete": {}
                    }
                ],
                "transitions": []
            }
        ],
        "ism_template": [
            {
                "index_patterns": [
                    "*"
                ],
                "priority": 10,
                "last_updated_time": 1642167385603
            }
        ]
    }
}

Will this be applied to indices that start with a ‘.’? E.g. .kibana etc?

Thanks

1 Like

Can someone from the development team confirm that in OpenSearch, when using the above template with index-pattern ‘*’, it will NOT be applied to system/hidden indices that start with a ‘.’?

We have seen that if we use the same ISM policy with opendistro, the ISM policy is applied to system indices.

We will skip applying the policy to indices starting with “.” or marked hidden indices - index-management/ManagedIndexCoordinator.kt at main · opensearch-project/index-management · GitHub

1 Like