diff --git a/services/elk/files/filebeat-ilm-policy-8h.json b/services/elk/files/filebeat-ilm-policy-8h.json new file mode 100644 index 0000000..ba6c640 --- /dev/null +++ b/services/elk/files/filebeat-ilm-policy-8h.json @@ -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 + } + } + } + } + } +} diff --git a/services/elk/templates/filebeat-configmaps.yaml b/services/elk/templates/filebeat-configmaps.yaml index 8d80115..bf1ea14 100644 --- a/services/elk/templates/filebeat-configmaps.yaml +++ b/services/elk/templates/filebeat-configmaps.yaml @@ -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 }}