Closed rfuelsh closed 8 months ago
policy add - logs are indefinite in cloudwatch
{
"policy": {
"policy_id": "cleanup-every-30-days",
"description": "cleanup-every-30-days",
"default_state": "hot",
"states": [
{
"name": "hot",
"actions": [],
"transitions": [
{
"state_name": "delete",
"conditions": {
"min_index_age": "30d"
}
}
]
},
{
"name": "delete",
"actions": [
{
"delete": {}
}
],
"transitions": []
}
],
"ism_template": [
{
"index_patterns": [
"cwl*"
],
"priority": 100
}
]
}
}