curator, version 5.6.0
rollover.yaml:
---
actions:
1:
action: rollover
description: >-
Rollover the index associated with alias 'aliasname', which should be in the
format of prefix-000001 (or similar), or prefix-YYYY.MM.DD-1.
options:
disable_action: False
name: nginx_logs
warn_if_no_indices: True
extra_settings:
index.number_of_shards: 3
index.number_of_replicas: 1
filters:
- filtertype: pattern
kind: prefix
value: filebeat-
- filtertype: period
period_type: absolute
source: name
timestring: '%Y.%m.%d'
unit: months
date_from: 2018.01
date_from_format: '%Y.%m'
date_to: 2019.01
date_to_format: '%Y.%m'
running:
curator --dry-run rollover.yaml
returns:
curator.exceptions.ConfigurationError: Configuration: structure: Location: Action ID "1": Bad Value: "[{'kind': 'prefix', 'filtertype': 'pattern', 'value': 'filebeat-'}, {'date_from': 2018.01, 'filtertype': 'period', 'date_to_format': '%Y.%m', 'source': 'name', 'period_type': 'absolute', 'timestring': '%Y.%m.%d', 'date_to': 2019.01, 'date_from_format': '%Y.%m', 'unit': 'months'}]", extra keys not allowed @ data['filters']. Check configuration file.
I pretty much took it all from the examples in the documentation.
Is this a yaml formatting issue or something else?