mirror of
https://github.com/valitydev/helmsdeep.git
synced 2024-11-06 08:55:21 +00:00
Faster log retention (#141)
This commit is contained in:
parent
85e21e5d72
commit
53f6eb728c
33
services/elk/files/filebeat-ilm-policy-8h.json
Normal file
33
services/elk/files/filebeat-ilm-policy-8h.json
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user