- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
The error you're encountering with the snapshot operation in your ISM policy is likely due to version requirements. The snapshot operation is only supported for domains running OpenSearch or Elasticsearch 7.7 or later.
Based on your policy structure, the issue appears to be with how you've formatted the snapshot action in your ISM policy. The snapshot action should be at the same level as the retry configuration, not nested within it. Here's how you should structure your policy:
{ "policy": { "description": "Send to S3 then delete after 10 days", "default_state": "hot", "ism_template": [ { "index_patterns": ["main-*"], "priority": 100 } ], "states": [ { "name": "hot", "actions": [], "transitions": [ { "state_name": "archive", "conditions": { "min_index_age": "10d" } } ] }, { "name": "archive", "actions": [ { "snapshot": { "repository": "main-app-logs-bucket", "snapshot": "{{ctx.index}}-{{ctx.execution_time}}", "retry": { "count": 5, "backoff": "exponential", "delay": "30m" } } } ], "transitions": [ { "state_name": "delete" } ] }, { "name": "delete", "actions": [ { "delete": {}, "retry": { "count": 3, "backoff": "exponential", "delay": "1m" } } ], "transitions": [] } ] } }
Note that in this corrected format:
- The
retryconfiguration is nested within thesnapshotaction, not the other way around - Similarly, in the delete state, the
retryconfiguration should be part of thedeleteaction
This structure aligns with how ISM expects the snapshot operation to be configured. Make sure your OpenSearch domain is running version 7.7 or later, as the snapshot operation is only supported from that version onward.
Sources
Index State Management in Amazon OpenSearch Service - Amazon OpenSearch Service

Is there a way to disable this AI answers? The question says it's running 2.19