我正在尝试按照
中的简单示例http://curator.readthedocs.io/en/v3.5.1/examples.html
import elasticsearch
import curator
client = elasticsearch.Elasticsearch()
indices = curator.get_indices(client)
filter_list = []
filter_list.append(curator.build_filter(kindOf='prefix', value='ab'))
filter_list.append(
curator.build_filter(
kindOf='older_than', value=30, time_unit='days',
timestring='%Y.%d.%m'
)
)
filter_list.append(
curator.build_filter(
kindOf='newer_than', value=14, time_unit='days',
timestring='%Y-%d-%m'
)
)
working_list = indices
for filter in filter_list:
working_list = curator.apply_filter(working_list, **filter)
curator.show(working_list)
但是我得到了
Error: Got unexpected extra arguments (ab-2016-05-27 ab-2016-05-26 ab-2016-05-25 ab-2016-05-24 ab-2016-05-28)
我错过了什么?