Split ES retention jobs for logs and notifications
Add audit index retention
Change-Id: I8ee168de86ef016e2a596a276276194715bb9d12
Closes-Bug: PROD-24172
diff --git a/elasticsearch/server/curator.yml b/elasticsearch/server/curator.yml
index a73ef44..26349eb 100644
--- a/elasticsearch/server/curator.yml
+++ b/elasticsearch/server/curator.yml
@@ -1,7 +1,8 @@
parameters:
_param:
- elasticsearch_curator_indices_pattern: "^(log|notification)-.*$"
+ elasticsearch_curator_indices_pattern: "^(log|audit)-.*$"
elasticsearch_curator_retention_period: 31
+ elasticsearch_curator_notifications_retention_period: 90
linux:
system:
cron:
@@ -34,6 +35,22 @@
unit_count: ${_param:elasticsearch_curator_retention_period}
- action: delete_indices
description: >-
+ Delete indices older than ${_param:elasticsearch_curator_notifications_retention_period} days (based on index creation date).
+ options:
+ ignore_empty_list: True
+ continue_if_exception: False
+ disable_action: False
+ filters:
+ - filtertype: pattern
+ kind: regex
+ value: "^notification-.*$"
+ - filtertype: age
+ source: creation_date
+ direction: older
+ unit: days
+ unit_count: ${_param:elasticsearch_curator_notifications_retention_period}
+ - action: delete_indices
+ description: >-
Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date).
options:
ignore_empty_list: True