mirror of
https://github.com/valitydev/curator-opensearch.git
synced 2024-11-06 10:15:24 +00:00
33 lines
892 B
YAML
33 lines
892 B
YAML
|
---
|
||
|
# Remember, leave a key empty if there is no value. None will be a string,
|
||
|
# not a Python "NoneType"
|
||
|
#
|
||
|
# Also remember that all examples have 'disable_action' set to True. If you
|
||
|
# want to use this action as a template, be sure to set this to False after
|
||
|
# copying it.
|
||
|
actions:
|
||
|
1:
|
||
|
action: allocation
|
||
|
description: >-
|
||
|
Apply shard allocation routing to 'require' 'tag=cold' for hot/cold node
|
||
|
setup for logstash- indices older than 3 days, based on index_creation
|
||
|
date
|
||
|
options:
|
||
|
key: tag
|
||
|
value: cold
|
||
|
allocation_type: require
|
||
|
wait_for_completion: False
|
||
|
continue_if_exception: False
|
||
|
disable_action: True
|
||
|
filters:
|
||
|
- filtertype: pattern
|
||
|
kind: prefix
|
||
|
value: logstash-
|
||
|
exclude:
|
||
|
- filtertype: age
|
||
|
source: creation_date
|
||
|
direction: older
|
||
|
unit: days
|
||
|
unit_count: 3
|
||
|
exclude:
|