6e3f741ace
This patch also configure delete indices action before close indices.
more info check curator source code[0].
[0] ac5db911a1/curator/cli.py (L217-L224)
Change-Id: I9fb4b25514f5890adfac2f4007ec4a819fc9f566
Closes-Bug: #1954720
36 lines
901 B
Django/Jinja
36 lines
901 B
Django/Jinja
actions:
|
|
1:
|
|
action: delete_indices
|
|
description: >-
|
|
Delete indicies
|
|
options:
|
|
ignore_empty_list: True
|
|
continue_if_exception: True
|
|
filters:
|
|
- filtertype: pattern
|
|
kind: prefix
|
|
value: "{{ elasticsearch_curator_index_pattern }}"
|
|
- filtertype: age
|
|
source: name
|
|
direction: older
|
|
timestring: '%Y.%m.%d'
|
|
unit: days
|
|
unit_count: "{{ elasticsearch_curator_hard_retention_period_days }}"
|
|
2:
|
|
action: close
|
|
description: >-
|
|
Closes indices
|
|
options:
|
|
ignore_empty_list: True
|
|
continue_if_exception: True
|
|
filters:
|
|
- filtertype: pattern
|
|
kind: prefix
|
|
value: "{{ elasticsearch_curator_index_pattern }}"
|
|
- filtertype: age
|
|
source: name
|
|
direction: older
|
|
timestring: '%Y.%m.%d'
|
|
unit: days
|
|
unit_count: "{{ elasticsearch_curator_soft_retention_period_days }}"
|