Created
October 4, 2022 12:36
-
-
Save weyderfs/c6a02239dc5d165611c217a1232f80b5 to your computer and use it in GitHub Desktop.
Revisions
-
Weyder Ferreira created this gist
Oct 4, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,42 @@ { "policy": { "description": "Delete index after 8D.", "default_state": "hot", "states": [ { "name": "hot", "actions": [{ "replica_count": { "number_of_replicas": 3 } } ], "transitions": [ { "state_name": "delete", "conditions": { "min_index_age": "8d" } } ] }, { "name": "delete", "actions": [ { "delete": {} } ], "transitions": [] } ], "ism_template": [ { "index_patterns": [ "my-index-foo*" ], "priority": 0 } ] } }