Open
Description
What is the bug?
Simple ISM policy doesnt work with datastreams
I asked in forum and reply was to open this report
How can one reproduce the bug?
This policy should delete older datastreams.
{
"id": "delete_after_7_days",
"seqNo": 66941,
"primaryTerm": 1,
"policy": {
"policy_id": "delete_after_7_days",
"description": "Policy to delete indices older than 7 days",
"last_updated_time": 1718804887897,
"schema_version": 21,
"error_notification": null,
"default_state": "hot",
"states": [
{
"name": "hot",
"actions": [],
"transitions": [
{
"state_name": "delete",
"conditions": {
"min_index_age": "7d"
}
}
]
},
{
"name": "delete",
"actions": [
{
"retry": {
"count": 3,
"backoff": "exponential",
"delay": "1m"
},
"delete": {}
}
],
"transitions": []
}
],
"ism_template": [
{
"index_patterns": [
"*nonp_app*",
"*nonp_system*",
"*security-auditlog*"
],
"priority": 2,
"last_updated_time": 1718797014932
}
]
}
}
What is the expected behavior?
A clear and concise description of what you expected to happen.
What is your host/environment?
Debian opensearch 2.14.0
Do you have any additional context?
Add any other context about the problem.