Attempting to follow resource Index State Management in Amazon Elasticsearch Service - Amazon Elasticsearch Service to add an ISM to transition my data from Hot to UltraWarm.
Policy can be created but struggling to add this policy to an index.
- Attempt one was to create a template
_template/hot_warm_delete
{
"index_patterns": [
"log-collector*",
"aws-log-collector*"
],
"template": {
"settings": {
"opendistro.index_state_management.policy_id": "hot_cold_workflow"
}
}
}
This did not add any indices to be managed by the policy.
- Attempt two was to create an
ism_template
as per policy below
{
"policy": {
"policy_id": "hot_cold_workflow",
"description": "Demonstrate a hot-warm-delete workflow.",
"last_updated_time": 1620283047106,
"schema_version": 1,
"error_notification": null,
"default_state": "hot",
"ism_template": {
"index_patterns": [
"log-collector*",
"aws-log-collector*"
]
},
"states": [
{
"name": "hot",
"actions": [],
"transitions": [
{
"state_name": "warm",
"conditions": {
"min_index_age": "10d"
}
}
]
},
{
"name": "warm",
"actions": [
{
"timeout": "24h",
"retry": {
"count": 5,
"backoff": "exponential",
"delay": "1h"
},
"warm_migration": {}
}
],
"transitions": [
{
"state_name": "delete",
"conditions": {
"min_index_age": "20d"
}
}
]
},
{
"name": "delete",
"actions": [
{
"delete": {}
}
],
"transitions": []
}
]
}
}
which throws error:
[illegal_argument_exception] Invalid field: [ism_template] found in Policy.
This is being attempted on an AWS Managed ES Cluster in Ireland.
Service software release - R20210331
Elasticsearch version - 7.10
Please advise as I cannot currently add indices automatically which is harming the cluster stability