Hello! I try to setup curator to delete old indices, but I receive error extra keys not allowed @ data['actions']. Check configuration file
No handlers could be found for logger "curator.validators.SchemaCheck"
Traceback (most recent call last):
File "/usr/bin/curator", line 9, in <module>
load_entry_point('elasticsearch-curator==5.8.1', 'console_scripts', 'curator')()
File "/usr/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/curator/cli.py", line 240, in cli
run(config, action_file, dry_run)
File "/usr/lib/python2.7/site-packages/curator/cli.py", line 108, in run
client_args = process_config(config)
File "/usr/lib/python2.7/site-packages/curator/config_utils.py", line 38, in process_config
config = test_config(yaml_file)
File "/usr/lib/python2.7/site-packages/curator/config_utils.py", line 21, in test_config
'Client Configuration', 'full configuration dictionary').result()
File "/usr/lib/python2.7/site-packages/curator/validators/schemacheck.py", line 69, in result
self.test_what, self.location, self.badvalue, self.error)
curator.exceptions.ConfigurationError: Configuration: Client Configuration: Location: full configuration dictionary: Bad Value: "{1: {'action': 'delete_indices', 'description': 'Delete indices older than 3 days (based on index name).', 'filters': [{'kind': 'prefix', 'filtertype': 'pattern', 'value': 'backend-'}, {'source': 'creation_date', 'direction': 'older', 'filtertype': 'age', 'unit_count': 3, 'unit': 'days'}], 'options': {'ignore_empty_list': True, 'disable_action': False}}}", extra keys not allowed @ data['actions']. Check configuration file.
My action.yml is:
---
actions:
1:
action: delete_indices
description: >-
Delete indices older than 3 days (based on index name).
options:
ignore_empty_list: True
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: backend-
- filtertype: age
source: creation_date
direction: older
unit: days
unit_count: 3
What can I do to troubleshoot issue?