Version: SG FLX
Community
This is a Technical Preview and should not yet be used in production.
Index Count Condition
This condition counts the number of indices assigned to a configured alias. If the number exceeds the configured maximum, this condition triggers if the current index is the oldest.
To determent which alias to check this condition requires an alias key configured in the index.aim.alias_mapping
part of the index settings.
Index Settings Example
copy
{
"index.aim.policy_name": "my-policy",
"index.aim.alias_mapping": {
"my-size-condition-key": "my-alias"
}
}
Condition Example
copy
{
"steps": [
...
{
"name": "active",
"conditions": [
...
{
"type": "index_count",
"alias_key": "my-size-condition-key",
"max_index_count": 10
},
...
],
"actions": [ ... ]
},
...
]
}