Finally I have 5.8.1 version in my opt directory!
When I did a --dry-run command o fmy config and actions file I got this error
root@ba08c43b9d35:/opt/elasticsearch-curator/Curator# curator --config /opt/elasticsearch-curator/Curator/curator.yml --dry-run /opt/elasticsearch-curator/Curator/actions_file.yml
2020-05-12 18:50:55,061 DEBUG curator.cli run:110 Client and logging options validated.
2020-05-12 18:50:55,061 DEBUG curator.cli run:114 default_timeout = 30
2020-05-12 18:50:55,061 DEBUG curator.cli run:118 action_file: /opt/elasticsearch-curator/Curator/actions_file.yml
2020-05-12 18:50:55,067 DEBUG curator.cli run:120 action_config: {'actions': {1: {'action': 'delete_indices', 'description': 'Delete if indices consume more than 300MB.', 'options': {'ignore_empty_list': True}, 'filters': [{'filtertype': 'pattern', 'kind': 'suffix', 'value': '-logs'}, {'filtertype': 'space', 'disk_space': 0.3, 'source': 'name', 'use_age': True, 'timestring': '%Y.%m.%d.%h'}]}}}
2020-05-12 18:50:55,067 DEBUG curator.validators.SchemaCheck __init__:26 Schema: {'actions': <class 'dict'>}
2020-05-12 18:50:55,067 DEBUG curator.validators.SchemaCheck __init__:27 "Actions File" config: {'actions': {1: {'action': 'delete_indices', 'description': 'Delete if indices consume more than 300MB.', 'options': {'ignore_empty_list': True}, 'filters': [{'filtertype': 'pattern', 'kind': 'suffix', 'value': '-logs'}, {'filtertype': 'space', 'disk_space': 0.3, 'source': 'name', 'use_age': True, 'timestring': '%Y.%m.%d.%h'}]}}}
2020-05-12 18:50:55,067 DEBUG curator.validators.SchemaCheck __init__:26 Schema: {'action': Any(In(['alias', 'allocation', 'close', 'cluster_routing', 'create_index', 'delete_indices', 'delete_snapshots', 'forcemerge', 'freeze', 'index_settings', 'open', 'reindex', 'replicas', 'restore', 'rollover', 'shrink', 'snapshot', 'unfreeze']), msg="action must be one of ['alias', 'allocation', 'close', 'cluster_routing', 'create_index', 'delete_indices', 'delete_snapshots', 'forcemerge', 'freeze', 'index_settings', 'open', 'reindex', 'replicas', 'restore', 'rollover', 'shrink', 'snapshot', 'unfreeze']")}
2020-05-12 18:50:55,067 DEBUG curator.validators.SchemaCheck __init__:27 "action type" config: {'action': 'delete_indices', 'description': 'Delete if indices consume more than 300MB.', 'options': {'ignore_empty_list': True}, 'filters': [{'filtertype': 'pattern', 'kind': 'suffix', 'value': '-logs'}, {'filtertype': 'space', 'disk_space': 0.3, 'source': 'name', 'use_age': True, 'timestring': '%Y.%m.%d.%h'}]}
2020-05-12 18:50:55,068 DEBUG curator.validators.SchemaCheck __init__:26 Schema: {'action': Any(In(['alias', 'allocation', 'close', 'cluster_routing', 'create_index', 'delete_indices', 'delete_snapshots', 'forcemerge', 'freeze', 'index_settings', 'open', 'reindex', 'replicas', 'restore', 'rollover', 'shrink', 'snapshot', 'unfreeze']), msg="action must be one of ['alias', 'allocation', 'close', 'cluster_routing', 'create_index', 'delete_indices', 'delete_snapshots', 'forcemerge', 'freeze', 'index_settings', 'open', 'reindex', 'replicas', 'restore', 'rollover', 'shrink', 'snapshot', 'unfreeze']"), 'description': Any(<class 'str'>, <class 'str'>, msg=None), 'options': <class 'dict'>, 'filters': <class 'list'>}
2020-05-12 18:50:55,068 DEBUG curator.validators.SchemaCheck __init__:27 "structure" config: {'action': 'delete_indices', 'description': 'Delete if indices consume more than 300MB.', 'options': {'ignore_empty_list': True}, 'filters': [{'filtertype': 'pattern', 'kind': 'suffix', 'value': '-logs'}, {'filtertype': 'space', 'disk_space': 0.3, 'source': 'name', 'use_age': True, 'timestring': '%Y.%m.%d.%h'}]}
2020-05-12 18:50:55,071 DEBUG curator.validators.SchemaCheck __init__:26 Schema: {'allow_ilm_indices': Any(<class 'bool'>, All(Any(<class 'str'>, msg=None), <function Boolean at 0x7fb679a65a70>, msg=None), msg=None), 'continue_if_exception': Any(<class 'bool'>, All(Any(<class 'str'>, msg=None), <function Boolean at 0x7fb679a65c20>, msg=None), msg=None), 'disable_action': Any(<class 'bool'>, All(Any(<class 'str'>, msg=None), <function Boolean at 0x7fb679a65dd0>, msg=None), msg=None), 'ignore_empty_list': Any(<class 'bool'>, All(Any(<class 'str'>, msg=None), <function Boolean at 0x7fb679a65f80>, msg=None), msg=None), 'timeout_override': Any(Coerce(int, msg=None), None, msg=None)}
2020-05-12 18:50:55,071 DEBUG curator.validators.SchemaCheck __init__:27 "options" config: {'ignore_empty_list': True}
2020-05-12 18:50:55,072 DEBUG curator.validators.SchemaCheck __init__:26 Schema: <function Filters.<locals>.f at 0x7fb679a655f0>
2020-05-12 18:50:55,072 DEBUG curator.validators.SchemaCheck __init__:27 "filters" config: [{'filtertype': 'pattern', 'kind': 'suffix', 'value': '-logs'}, {'filtertype': 'space', 'disk_space': 0.3, 'source': 'name', 'use_age': True, 'timestring': '%Y.%m.%d.%h'}]
2020-05-12 18:50:55,072 DEBUG curator.validators.SchemaCheck __init__:26 Schema: {'filtertype': Any(In(['age', 'alias', 'allocated', 'closed', 'count', 'empty', 'forcemerged', 'ilm', 'kibana', 'none', 'opened', 'pattern', 'period', 'shards', 'space', 'state']), msg="filtertype must be one of ['age', 'alias', 'allocated', 'closed', 'count', 'empty', 'forcemerged', 'ilm', 'kibana', 'none', 'opened', 'pattern', 'period', 'shards', 'space', 'state']"), 'kind': Any('prefix', 'suffix', 'timestring', 'regex', msg=None), 'value': Any(<class 'str'>, msg=None), 'exclude': Any(<class 'bool'>, All(Any(<class 'str'>, msg=None), <function Boolean at 0x7fb679a69b90>, msg=None), msg=None)}
2020-05-12 18:50:55,072 DEBUG curator.validators.SchemaCheck __init__:27 "filter" config: {'filtertype': 'pattern', 'kind': 'suffix', 'value': '-logs'}
2020-05-12 18:50:55,073 DEBUG curator.validators.filters f:48 Filter #0: {'filtertype': 'pattern', 'kind': 'suffix', 'value': '-logs', 'exclude': False}
2020-05-12 18:50:55,073 DEBUG curator.validators.SchemaCheck __init__:26 Schema: {'filtertype': Any(In(['age', 'alias', 'allocated', 'closed', 'count', 'empty', 'forcemerged', 'ilm', 'kibana', 'none', 'opened', 'pattern', 'period', 'shards', 'space', 'state']), msg="filtertype must be one of ['age', 'alias', 'allocated', 'closed', 'count', 'empty', 'forcemerged', 'ilm', 'kibana', 'none', 'opened', 'pattern', 'period', 'shards', 'space', 'state']"), 'disk_space': Any(Coerce(float, msg=None), msg=None), 'reverse': Any(<class 'bool'>, All(Any(<class 'str'>, msg=None), <function Boolean at 0x7fb679a69290>, msg=None), msg=None), 'use_age': Any(<class 'bool'>, All(Any(<class 'str'>, msg=None), <function Boolean at 0x7fb679a693b0>, msg=None), msg=None), 'exclude': Any(<class 'bool'>, All(Any(<class 'str'>, msg=None), <function Boolean at 0x7fb679a6d0e0>, msg=None), msg=None), 'threshold_behavior': Any('greater_than', 'less_than', msg=None), 'source': Any('name', 'creation_date', 'field_stats', msg=None), 'stats_result': Any('min_value', 'max_value', msg=None), 'timestring': Any(<class 'str'>, msg=None)}
2020-05-12 18:50:55,073 DEBUG curator.validators.SchemaCheck __init__:27 "filter" config: {'filtertype': 'space', 'disk_space': 0.3, 'source': 'name', 'use_age': True, 'timestring': '%Y.%m.%d.%h'}
2020-05-12 18:50:55,074 DEBUG curator.validators.filters f:48 Filter #1: {'filtertype': 'space', 'disk_space': 0.3, 'source': 'name', 'use_age': True, 'timestring': '%Y.%m.%d.%h', 'stats_result': 'min_value', 'exclude': False, 'reverse': True, 'threshold_behavior': 'greater_than'}
2020-05-12 18:50:55,074 DEBUG curator.cli run:123 Full list of actions: {1: {'action': 'delete_indices', 'description': 'Delete if indices consume more than 300MB.', 'options': {'ignore_empty_list': True, 'disable_action': False, 'continue_if_exception': False, 'allow_ilm_indices': False, 'timeout_override': None}, 'filters': [{'filtertype': 'pattern', 'kind': 'suffix', 'value': '-logs', 'exclude': False}, {'filtertype': 'space', 'disk_space': 0.3, 'source': 'name', 'use_age': True, 'timestring': '%Y.%m.%d.%h', 'stats_result': 'min_value', 'exclude': False, 'reverse': True, 'threshold_behavior': 'greater_than'}]}}
2020-05-12 18:50:55,074 DEBUG curator.cli run:128 action_disabled = False
2020-05-12 18:50:55,074 DEBUG curator.cli run:132 continue_if_exception = False
2020-05-12 18:50:55,074 DEBUG curator.cli run:134 timeout_override = None
2020-05-12 18:50:55,074 DEBUG curator.cli run:136 ignore_empty_list = True
2020-05-12 18:50:55,074 DEBUG curator.cli run:138 allow_ilm_indices = False
2020-05-12 18:50:55,074 INFO curator.cli run:148 Preparing Action ID: 1, "delete_indices"
2020-05-12 18:50:55,075 INFO curator.cli run:162 Creating client object and testing connection
2020-05-12 18:50:55,075 DEBUG curator.utils get_client:809 kwargs = {'hosts': ['elk'], 'port': 9200, 'use_ssl': True, 'certificate': '/opt/kibana/config/certs/elastic-ca.pem', 'ssl_no_validate': True, 'http_auth': 'elastic:esqelk', 'master_only': False, 'aws_sign_request': False, 'client_key': None, 'url_prefix': '', 'client_cert': None, 'aws_key': None, 'aws_secret_key': None, 'aws_token': None, 'timeout': 30}
2020-05-12 18:50:55,075 DEBUG curator.utils get_client:871 Checking for AWS settings
2020-05-12 18:50:55,082 DEBUG curator.utils get_client:886 "requests_aws4auth" module present, but not used.
2020-05-12 18:50:55,082 INFO curator.utils get_client:903 Instantiating client object
/opt/elasticsearch-curator/lib/elasticsearch/connection/http_requests.py:105: UserWarning: Connecting to https://elk:9200 using SSL with verify_certs=False is insecure.
2020-05-12 18:50:55,083 INFO curator.utils get_client:906 Testing client connectivity
2020-05-12 18:50:55,130 ERROR curator.utils get_client:915 HTTP N/A error: HTTPSConnectionPool(host='elk', port=9200): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb679a14b90>: Failed to establish a new connection: [Errno -2] Name or service not known'))
2020-05-12 18:50:55,130 CRITICAL curator.utils get_client:923 Curator cannot proceed. Exiting.
My config file is
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"
client:
hosts:
- ***
port: 9200
url_prefix:
use_ssl: True
certificate: /opt/kibana/config/certs/elastic-ca.pem
ssl_no_validate: True
http_auth: ***:****
timeout: 30
master_only: False
logging:
loglevel: DEBUG
logfile:
logformat: default
blacklist: ['elasticsearch', 'urllib3']