Skip to content

Instantly share code, notes, and snippets.

@pashtet04
Created November 12, 2021 13:10
Show Gist options
  • Select an option

  • Save pashtet04/ad6d41a57d9f9baae88ef4bec1599a8b to your computer and use it in GitHub Desktop.

Select an option

Save pashtet04/ad6d41a57d9f9baae88ef4bec1599a8b to your computer and use it in GitHub Desktop.
rollover policy
{
"policy": {
"description": "Production Logs rollover policy.",
"default_state": "hot",
"states": [
{
"name": "rollover",
"actions": [
{
"rollover": {
"min_size": "4gb"
}
}
],
"transitions": []
},
{
"name": "hot",
"actions": [
{
"replica_count": {
"number_of_replicas": 2
}
}
],
"transitions": [
{
"state_name": "cold",
"conditions": {
"min_index_age": "30d"
}
}
]
},
{
"name": "cold",
"actions": [
{
"read_only": {}
}
],
"transitions": [
{
"state_name": "delete",
"conditions": {
"min_index_age": "180d"
}
}
]
},
{
"name": "delete",
"actions": [
{
"delete": {}
}
],
"transitions": []
}
],
"ism_template": {
"index_patterns": [
"prod*"
],
"priority": 100
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment