Weekly Index Delete Automatically from Elasticsearch Cluster

Hello Guys

I am using Elasticsearch 7.10.2 I have 6 Data node Cluster in this Cluster I am Facing Space Issue so I set Index Policy for Daily Index but I am having Monthly and Weekly Index I want setup Automatically Delete Weekly Index and Monthly Index Can you Please Help me for this

My Current Configuration for Index Automatic Daily Index Delete

PUT _opendistro/_ism/policies/delete_debug_logs_after_15days
{
"policy": {
"description": "Delete debug indices after 15 days",
"default_state": "Open",
"schema_version": 1,
"states": [
{
"name": "Open",
"actions": [
{
"open": {}
}
],
"transitions": [
{
"state_name": "Delete",
"conditions": {
"min_index_age": "15d"
}
}
]
},
{
"name": "Delete",
"actions": [
{
"delete": {}
}
]
}
],
"ism_template": {
"index_patterns": ["security-auditlog*"],
"priority": 100
}
}
}
}

POST _opendistro/_ism/add/security-auditlog*
{
"policy_id": "delete_debug_logs_after_15days"
}

Elasticsearch 7.10 is EOL and no longer supported. Please upgrade ASAP.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

You are using Opendistro/Opensearch, which is not supported here, you need to ask this in the Opensearch forum.

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

@leandrojmp Thank you for Reply

Yeah. Or even better, switch to the real Elasticsearch project :wink: