Change the way how curator remove indices
Change-Id: I59273c89337bb06af65efcbaaa44a88b6406b2f6
Related-PROD: PROD-19763
diff --git a/elasticsearch/server/curator.yml b/elasticsearch/server/curator.yml
index e4e5ace..fe7383d 100644
--- a/elasticsearch/server/curator.yml
+++ b/elasticsearch/server/curator.yml
@@ -12,41 +12,33 @@
actions:
- action: delete_indices
description: >-
- Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index name).
+ Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date).
options:
ignore_empty_list: True
- timeout_override:
continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: regex
value: "${_param:elasticsearch_curator_indices_pattern}"
- exclude:
- filtertype: age
- source: name
+ source: creation_date
direction: older
- timestring: '%Y.%m.%d'
unit: days
unit_count: ${_param:elasticsearch_curator_retention_period}
- exclude:
- action: delete_indices
description: >-
- Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index name).
+ Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date).
options:
ignore_empty_list: True
- timeout_override:
continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: regex
value: "^events_.*$"
- exclude:
- filtertype: age
- source: name
+ source: creation_date
direction: older
- timestring: '%Y-%m-%d'
unit: days
unit_count: ${_param:elasticsearch_curator_retention_period}
- exclude:
\ No newline at end of file