Created
December 15, 2020 10:18
-
-
Save michelep/ec0ba589c6f8477120d2593bad1871c5 to your computer and use it in GitHub Desktop.
WAZUH - Hot-Cold-Delete Policy
This file contains 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 characters
{ | |
"policy": { | |
"policy_id": "hot_cold_workflow", | |
"description": "A simple default policy that changes the replica count between hot and cold states.", | |
"last_updated_time": 1607978734307, | |
"schema_version": 1, | |
"error_notification": null, | |
"default_state": "hot", | |
"states": [ | |
{ | |
"name": "hot", | |
"actions": [ | |
{ | |
"replica_count": { | |
"number_of_replicas": 2 | |
} | |
} | |
], | |
"transitions": [ | |
{ | |
"state_name": "cold", | |
"conditions": { | |
"min_index_age": "15d" | |
} | |
} | |
] | |
}, | |
{ | |
"name": "cold", | |
"actions": [ | |
{ | |
"read_only": {} | |
} | |
], | |
"transitions": [ | |
{ | |
"state_name": "delete", | |
"conditions": { | |
"min_index_age": "90d" | |
} | |
} | |
] | |
}, | |
{ | |
"name": "delete", | |
"actions": [ | |
{ | |
"delete": {} | |
} | |
], | |
"transitions": [] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment