Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch 2.15
Opensearch Dashboards 2.15
Describe the issue:
I’m trying to apply ISM policy to the index and I want it to start from the specific step.
Here are steps that I did:
-
Added policy:
-
checked that the policy has been applied and initialized successfully:
-
changed policy to switch to the specific step
-
checked explain API again, and found that nothing has been changed:
Did I miss something in the execution sequence?
Configuration:
here is the policy:
"policy_id": "standard_policy",
"description": "Default policy",
"schema_version": 21
},
"default_state": "current_write_index",
"states": [
{
"name": "current_write_index",
"actions": [
{
"retry": {
"count": 20,
"backoff": "constant",
"delay": "1h"
},
"rollover": {
"min_size": "35gb",
"min_index_age": "7d",
"copy_alias": false
}
}
],
"transitions": [
{
"state_name": "snapshot"
}
]
},
{
"name": "snapshot",
"actions": [
{
"timeout": "24h",
"retry": {
"count": 10,
"backoff": "constant",
"delay": "1h"
},
"snapshot": {
"repository": "azure-repository",
"snapshot": "ism_snapshot"
}
}
],
"transitions": [
{
"state_name": "search",
"conditions": {
"min_index_age": "3d"
}
}
]
},
{
"name": "search",
"actions": [
{
"timeout": "24h",
"retry": {
"count": 5,
"backoff": "constant",
"delay": "1h"
},
"allocation": {
"require": {
"box_type": "warm"
},
"include": {},
"exclude": {},
"wait_for": false
}
},
{
"timeout": "24h",
"retry": {
"count": 5,
"backoff": "constant",
"delay": "1h"
},
"force_merge": {
"max_num_segments": 1
}
}
],
"transitions": [
{
"state_name": "shrink",
"conditions": {
"min_index_age": "20d"
}
}
]
},
{
"name": "shrink",
"actions": [
{
"timeout": "24h",
"retry": {
"count": 5,
"backoff": "constant",
"delay": "1h"
},
"shrink": {
"num_new_shards": 1,
"target_index_name_template": {
"source": "{{ctx.index}}-shrink",
"lang": "mustache"
},
"aliases": [],
"switch_aliases": false,
"force_unsafe": false
}
},
{
"timeout": "24h",
"retry": {
"count": 5,
"backoff": "constant",
"delay": "1h"
},
"allocation": {
"require": {
"box_type": "cold"
},
"include": {},
"exclude": {},
"wait_for": false
}
}
],
"transitions": [
{
"state_name": "delete",
"conditions": {
"min_index_age": "30d"
}
}
]
},
{
"name": "delete",
"actions": [
{
"retry": {
"count": 20,
"backoff": "constant",
"delay": "1h"
},
"delete": {}
}
],
"transitions": []
}
],
"ism_template": [
{
"index_patterns": [
"aws-logs*",
],
"priority": 1
}
]
}
Relevant Logs or Screenshots: