2020-04-29 05:00:06,562 DEBUG curator.cli run:110 Client and logging options validated. 2020-04-29 05:00:06,562 DEBUG curator.cli run:114 default_timeout = 60 2020-04-29 05:00:06,562 DEBUG curator.cli run:118 action_file: /etc/elasticsearch-curator/actions.yml 2020-04-29 05:00:06,655 DEBUG curator.cli run:120 action_config: {'actions': {1: {'action': 'delete_indices', 'description': 'Delete indices older than 7 (based on index name)', 'options': {'timeout_override': None, 'continue_if_exception': False, 'disable_action': False, 'ignore_empty_list': True}, 'filters': [{'filtertype': 'age', 'source': 'name', 'direction': 'older', 'timestring': '%Y.%m.%d', 'unit': 'days', 'unit_count': 7}]}}} 2020-04-29 05:00:06,656 DEBUG curator.validators.SchemaCheck __init__:26 Schema: {'actions': } 2020-04-29 05:00:06,656 DEBUG curator.validators.SchemaCheck __init__:27 "Actions File" config: {'actions': {1: {'action': 'delete_indices', 'description': 'Delete indices older than 7 (based on index name)', 'options': {'timeout_override': None, 'continue_if_exception': False, 'disable_action': False, 'ignore_empty_list': True}, 'filters': [{'filtertype': 'age', 'source': 'name', 'direction': 'older', 'timestring': '%Y.%m.%d', 'unit': 'days', 'unit_count': 7}]}}} 2020-04-29 05:00:06,656 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-04-29 05:00:06,656 DEBUG curator.validators.SchemaCheck __init__:27 "action type" config: {'action': 'delete_indices', 'description': 'Delete indices older than 7 (based on index name)', 'options': {'timeout_override': None, 'continue_if_exception': False, 'disable_action': False, 'ignore_empty_list': True}, 'filters': [{'filtertype': 'age', 'source': 'name', 'direction': 'older', 'timestring': '%Y.%m.%d', 'unit': 'days', 'unit_count': 7}]} 2020-04-29 05:00:06,657 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(, , msg=None), 'options': , 'filters': } 2020-04-29 05:00:06,657 DEBUG curator.validators.SchemaCheck __init__:27 "structure" config: {'action': 'delete_indices', 'description': 'Delete indices older than 7 (based on index name)', 'options': {'timeout_override': None, 'continue_if_exception': False, 'disable_action': False, 'ignore_empty_list': True}, 'filters': [{'filtertype': 'age', 'source': 'name', 'direction': 'older', 'timestring': '%Y.%m.%d', 'unit': 'days', 'unit_count': 7}]} 2020-04-29 05:00:06,659 DEBUG curator.validators.SchemaCheck __init__:26 Schema: {'allow_ilm_indices': Any(, All(Any(, msg=None), , msg=None), msg=None), 'continue_if_exception': Any(, All(Any(, msg=None), , msg=None), msg=None), 'disable_action': Any(, All(Any(, msg=None), , msg=None), msg=None), 'ignore_empty_list': Any(, All(Any(, msg=None), , msg=None), msg=None), 'timeout_override': Any(Coerce(int, msg=None), None, msg=None)} 2020-04-29 05:00:06,660 DEBUG curator.validators.SchemaCheck __init__:27 "options" config: {'continue_if_exception': False, 'disable_action': False, 'ignore_empty_list': True} 2020-04-29 05:00:06,660 DEBUG curator.validators.SchemaCheck __init__:26 Schema: .f at 0x7fbc40ba4290> 2020-04-29 05:00:06,660 DEBUG curator.validators.SchemaCheck __init__:27 "filters" config: [{'filtertype': 'age', 'source': 'name', 'direction': 'older', 'timestring': '%Y.%m.%d', 'unit': 'days', 'unit_count': 7}] 2020-04-29 05:00:06,660 DEBUG curator.defaults.filtertypes age:55 AGE FILTER = [{'direction': Any('older', 'younger', msg=None)}, {'unit': Any('seconds', 'minutes', 'hours', 'days', 'weeks', 'months', 'years', msg=None)}, {'unit_count': Coerce(int, msg=None)}, {'unit_count_pattern': Any(, msg=None)}, {'epoch': Any(Coerce(int, msg=None), None, msg=None)}, {'exclude': Any(, All(Any(, msg=None), , msg=None), msg=None)}, {'source': Any('name', 'creation_date', 'field_stats', msg=None)}, {'stats_result': Any('min_value', 'max_value', msg=None)}, {'timestring': Any(, msg=None)}] 2020-04-29 05:00:06,661 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']"), 'direction': Any('older', 'younger', msg=None), 'unit': Any('seconds', 'minutes', 'hours', 'days', 'weeks', 'months', 'years', msg=None), 'unit_count': Coerce(int, msg=None), 'unit_count_pattern': Any(, msg=None), 'epoch': Any(Coerce(int, msg=None), None, msg=None), 'exclude': Any(, All(Any(, msg=None), , msg=None), msg=None), 'source': Any('name', 'creation_date', 'field_stats', msg=None), 'stats_result': Any('min_value', 'max_value', msg=None), 'timestring': Any(, msg=None)} 2020-04-29 05:00:06,661 DEBUG curator.validators.SchemaCheck __init__:27 "filter" config: {'filtertype': 'age', 'source': 'name', 'direction': 'older', 'timestring': '%Y.%m.%d', 'unit': 'days', 'unit_count': 7} 2020-04-29 05:00:06,661 DEBUG curator.validators.filters f:48 Filter #0: {'filtertype': 'age', 'source': 'name', 'direction': 'older', 'timestring': '%Y.%m.%d', 'unit': 'days', 'unit_count': 7, 'stats_result': 'min_value', 'epoch': None, 'exclude': False} 2020-04-29 05:00:06,662 DEBUG curator.cli run:123 Full list of actions: {1: {'action': 'delete_indices', 'description': 'Delete indices older than 7 (based on index name)', 'options': {'continue_if_exception': False, 'disable_action': False, 'ignore_empty_list': True, 'timeout_override': None, 'allow_ilm_indices': False}, 'filters': [{'filtertype': 'age', 'source': 'name', 'direction': 'older', 'timestring': '%Y.%m.%d', 'unit': 'days', 'unit_count': 7, 'stats_result': 'min_value', 'epoch': None, 'exclude': False}]}} 2020-04-29 05:00:06,662 DEBUG curator.cli run:128 action_disabled = False 2020-04-29 05:00:06,662 DEBUG curator.cli run:132 continue_if_exception = False 2020-04-29 05:00:06,662 DEBUG curator.cli run:134 timeout_override = None 2020-04-29 05:00:06,662 DEBUG curator.cli run:136 ignore_empty_list = True 2020-04-29 05:00:06,662 DEBUG curator.cli run:138 allow_ilm_indices = False 2020-04-29 05:00:06,662 INFO curator.cli run:148 Preparing Action ID: 1, "delete_indices" 2020-04-29 05:00:06,662 INFO curator.cli run:162 Creating client object and testing connection 2020-04-29 05:00:06,662 DEBUG curator.utils get_client:809 kwargs = {'certificate': '/etc/elasticsearch-curator/certs/root-ca.pem', 'client_cert': '/etc/elasticsearch-curator/certs/admin.crt.pem', 'client_key': '/etc/elasticsearch-curator/certs/admin.key.pem', 'hosts': ['elasticsearch.prashant'], 'master_only': False, 'port': 9200, 'ssl_no_validate': True, 'url_prefix': '', 'use_ssl': True, 'aws_secret_key': None, 'aws_sign_request': False, 'aws_token': None, 'aws_key': None, 'http_auth': None, 'timeout': 60} 2020-04-29 05:00:06,662 DEBUG curator.utils get_client:871 Checking for AWS settings 2020-04-29 05:00:06,756 DEBUG curator.utils get_client:886 "requests_aws4auth" module present, but not used. 2020-04-29 05:00:06,756 INFO curator.utils get_client:903 Instantiating client object 2020-04-29 05:00:06,757 INFO curator.utils get_client:906 Testing client connectivity 2020-04-29 05:00:07,151 ERROR curator.utils get_client:915 HTTP N/A error: HTTPSConnectionPool(host='elasticsearch.prashant', port=9200): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:2508)'))) 2020-04-29 05:00:07,151 CRITICAL curator.utils get_client:923 Curator cannot proceed. Exiting. /opt/elasticsearch-curator/lib/elasticsearch/connection/http_requests.py:105: UserWarning: Connecting to https://elasticsearch.prashant:9200 using SSL with verify_certs=False is insecure. /opt/elasticsearch-curator/lib/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings /opt/elasticsearch-curator/lib/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings /opt/elasticsearch-curator/lib/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings /opt/elasticsearch-curator/lib/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings