** Versions: 2.6.0** (relevant - Index Management Kibana):
Describe the issue:
I created an ILM policy for index security-auditlogs to purge index after 7 days.
ILM Policy created successfully:
PUT _plugins/_ism/policies/security-auditlogs
{
"policy": {
"description": "A simple default policy that delete index older than 7 days.",
"default_state": "hot",
"states": [
{
"name": "hot",
"actions": [],
"transitions": [
{
"state_name": "delete",
"conditions": {
"min_index_age": "7d"
}
}
]
},
{
"name": "delete",
"actions": [
{
"delete": {}
}
],
"transitions": []
}
]
"ism_template": {
"index_patterns": ["security-auditlog-*"],
"priority": 100
}
}
}
In Step 2: I don’t want to attach, the policy security_auditlogs to all the security index manually, It should get applied automatically but its not getting applied.
Pls let me know how to add ILM policy on indexes automatically.
Re link: Index State Management - OpenSearch documentation
Manully policy is getting added, but when new timeseries index will be created, the policy should get applied automatically.
