Hi,
We have the following action file for curator:
---
actions:
1:
action: delete_snapshots
description: >-
Delete snapshots older than 6 months for all logstash snapshots
options:
repository: sealikrebak01
disable_action: False
timeout_override: 10000
ignore_empty_list: True
filters:
- filtertype: pattern
kind: prefix
value: snapshot-
exclude:
- filtertype: age
source: creation_date
direction: older
unit: months
unit_count: 6
But when we run it we get the following error message:
2020-02-19 10:43:37,553 INFO Action ID: 1, "delete_snapshots" completed.
2020-02-19 10:43:37,553 INFO Job completed.
2020-02-19 10:47:43,942 INFO Preparing Action ID: 1, "delete_snapshots"
2020-02-19 10:47:43,942 INFO Creating client object and testing connection
2020-02-19 10:47:43,945 INFO Instantiating client object
2020-02-19 10:47:43,945 INFO Testing client connectivity
2020-02-19 10:47:43,949 INFO Successfully created Elasticsearch client object with provided settings
2020-02-19 10:47:43,951 INFO Trying Action ID: 1, "delete_snapshots": Delete snapshots older than 6 months for all logstash snapshots
2020-02-19 10:47:45,268 INFO Deleting 53 selected snapshots: [u'snapshot-logstash-20190805', u'snapshot-beats-20190805', u'snapshot-system-20190805', u'snapshot-logstash-20190806', u'snapshot-beats-20190806', u'snapshot-system-20190806', u'snapshot-logstash-20190807', u'snapshot-beats-20190807', u'snapshot-system-20190807', u'snapshot-logstash-20190808', u'snapshot-beats-20190808', u'snapshot-system-20190808', u'snapshot-logstash-20190809', u'snapshot-beats-20190809', u'snapshot-system-20190809', u'snapshot-logstash-20190810', u'snapshot-beats-20190810', u'snapshot-system-20190810', u'snapshot-logstash-20190811', u'snapshot-beats-20190811', u'snapshot-system-20190811', u'snapshot-logstash-20190812', u'snapshot-beats-20190812', u'snapshot-system-20190812', u'snapshot-logstash-20190813', u'snapshot-beats-20190813', u'snapshot-system-20190813', u'snapshot-logstash-20190814', u'snapshot-beats-20190814', u'snapshot-system-20190814', u'snapshot-logstash-20190815', u'snapshot-beats-20190815', u'snapshot-system-20190815', u'snapshot-logstash-20190816', u'snapshot-beats-20190816', u'snapshot-system-20190816', u'snapshot-logstash-20190817', u'snapshot-beats-20190817', u'snapshot-system-20190817', u'snapshot-logstash-20190818', u'snapshot-beats-20190818', u'snapshot-system-20190818', u'snapshot-logstash-20190819', u'snapshot-beats-20190819', u'snapshot-logstash-20190820', u'snapshot-beats-20190820', u'snapshot-system-20190820', u'snapshot-logstash-20190821', u'snapshot-beats-20190821', u'snapshot-system-20190821', u'snapshot-logstash-20190822', u'snapshot-beats-20190822', u'snapshot-system-20190822']
2020-02-19 10:47:45,922 ERROR Failed to complete action: delete_snapshots. <type 'exceptions.TypeError'>: get() takes at least 2 arguments (2 given)
If i run the action with --dry-run, no errors are generated. What is the issue here?
Curator version 5.8 in a docker container