Faster log retention (#141)

This commit is contained in:
Andrey Abramov 2020-11-16 00:28:18 +03:00 committed by GitHub
parent 85e21e5d72
commit 53f6eb728c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,33 @@
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_age": "2h"
},
"set_priority": {
"priority": 100
}
}
},
"warm": {
"min_age": "4h",
"actions": {
"set_priority": {
"priority": null
}
}
},
"delete": {
"min_age": "6h",
"actions": {
"delete": {
"delete_searchable_snapshot": true
}
}
}
}
}
}

View File

@ -7,4 +7,4 @@ data:
index_template_json: |
{{- .Files.Get "files/filebeat-index-template.json" | nindent 4 }}
ilm_policy_json: |
{{- .Files.Get "files/filebeat-ilm-policy-16h.json" | nindent 4 }}
{{- .Files.Get "files/filebeat-ilm-policy-8h.json" | nindent 4 }}