Skip to content

Instantly share code, notes, and snippets.

@lanerjo
Created September 26, 2018 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lanerjo/0b98949330fe9a5831577f257ea4c562 to your computer and use it in GitHub Desktop.
Save lanerjo/0b98949330fe9a5831577f257ea4c562 to your computer and use it in GitHub Desktop.
curator --config /etc/elasticsearch/curator.conf /etc/elasticsearch/index_prod_rollover.curator
2018-09-26 20:05:22,005 DEBUG curator.cli run:108 Client and logging options
validated.
2018-09-26 20:05:22,005 DEBUG curator.cli run:112 default_timeout = 30
2018-09-26 20:05:22,005 DEBUG curator.cli run:116 action_file:
/etc/elasticsearch/index_prod_rollover.curator
2018-09-26 20:05:22,009 DEBUG curator.cli run:118 action_config: {'actions': {1:
{'action': 'rollover', 'description': "Rollover the index associated with index 'name', which should be in the
form of prefix-000001 (or similar), or prefix-YYYY.MM.DD-1.", 'options': {'name': 'index_prod_active',
'conditions': {'max_age': '1d', 'max_size': '1gb'}}}}}
2018-09-26 20:05:22,009 DEBUG curator.validators.SchemaCheck __init__:26 Schema: {'actions': <class 'dict'>}
2018-09-26 20:05:22,009 DEBUG curator.validators.SchemaCheck __init__:27 "Actions File" config: {'actions': {1: {'action': 'rollover', 'description': "Rollover the index associated with index 'name', which should be in the form of prefix-000001 (or similar), or prefix-YYYY.MM.DD-1.", 'options': {'name': 'index_prod_active', 'conditions': {'max_age': '1d', 'max_size': '1gb'}}}}}
2018-09-26 20:05:22,010 DEBUG curator.validators.SchemaCheck __init__:26 Schema: {'action': Any(In(['alias', 'allocation', 'close', 'cluster_routing', 'create_index', 'delete_indices', 'delete_snapshots', 'forcemerge', 'index_settings', 'open', 'reindex', 'replicas', 'restore', 'rollover', 'shrink', 'snapshot']), msg="action must be one of ['alias', 'allocation', 'close', 'cluster_routing', 'create_index', 'delete_indices', 'delete_snapshots', 'forcemerge', 'index_settings', 'open', 'reindex', 'replicas', 'restore', 'rollover', 'shrink', 'snapshot']")}
2018-09-26 20:05:22,010 DEBUG curator.validators.SchemaCheck __init__:27 "action type" config: {'action': 'rollover', 'description': "Rollover the index associated with index 'name', which should be in the form of prefix-000001 (or similar), or prefix-YYYY.MM.DD-1.", 'options': {'name': 'index_prod_active', 'conditions': {'max_age': '1d', 'max_size': '1gb'}}}
2018-09-26 20:05:22,010 DEBUG curator.validators.SchemaCheck __init__:26 Schema: {'action': Any(In(['alias', 'allocation', 'close', 'cluster_routing', 'create_index', 'delete_indices', 'delete_snapshots', 'forcemerge', 'index_settings', 'open', 'reindex', 'replicas', 'restore', 'rollover', 'shrink', 'snapshot']), msg="action must be one of ['alias', 'allocation', 'close', 'cluster_routing', 'create_index', 'delete_indices', 'delete_snapshots', 'forcemerge', 'index_settings', 'open', 'reindex', 'replicas', 'restore', 'rollover', 'shrink', 'snapshot']"), 'description': Any(<class 'str'>, <class 'str'>, msg=None), 'options': <class 'dict'>}
2018-09-26 20:05:22,010 DEBUG curator.validators.SchemaCheck __init__:27 "structure" config: {'action': 'rollover', 'description': "Rollover the index associated with index 'name', which should be in the form of prefix-000001 (or similar), or prefix-YYYY.MM.DD-1.", 'options': {'name': 'index_prod_active', 'conditions': {'max_age': '1d', 'max_size': '1gb'}}}
2018-09-26 20:05:22,013 DEBUG curator.validators.SchemaCheck __init__:26 Schema: {'allow_ilm_indices': Any(<class 'bool'>, All(Any(<class 'str'>, msg=None), <function Boolean at 0x7fbb899dda60>, msg=None), msg=None), 'continue_if_exception': Any(<class 'bool'>, All(Any(<class 'str'>, msg=None), <function Boolean at 0x7fbb899ddbf8>, msg=None), msg=None), 'disable_action': Any(<class 'bool'>, All(Any(<class 'str'>, msg=None), <function Boolean at 0x7fbb899ddd90>, msg=None), msg=None), 'ignore_empty_list': Any(<class 'bool'>, All(Any(<class 'str'>, msg=None), <function Boolean at 0x7fbb899ddf28>, msg=None), msg=None), 'timeout_override': Any(Coerce(int, msg=None), None, msg=None), 'name': Any(<class 'str'>, msg=None), 'new_index': Any(None, <class 'str'>, msg=None), 'conditions': {'max_age': Any(<class 'str'>, msg=None), 'max_docs': Coerce(int, msg=None), 'max_size': Any(<class 'str'>, msg=None)}, 'extra_settings': <class 'dict'>, 'wait_for_active_shards': Any(Coerce(int, msg=None), 'all', None, msg=None)}
2018-09-26 20:05:22,013 DEBUG curator.validators.SchemaCheck __init__:27 "options" config: {'name': 'index_prod_active', 'conditions': {'max_age': '1d', 'max_size': '1gb'}}
2018-09-26 20:05:22,013 DEBUG curator.cli run:121 Full list of actions: {1: {'action': 'rollover', 'description': "Rollover the index associated with index 'name', which should be in the form of prefix-000001 (or similar), or prefix-YYYY.MM.DD-1.", 'options': {'name': 'index_prod_active', 'conditions': {'max_age': '1d', 'max_size': '1gb'}, 'disable_action': False, 'new_index': None, 'timeout_override': None, 'allow_ilm_indices': False, 'ignore_empty_list': False, 'extra_settings': {}, 'continue_if_exception': False, 'wait_for_active_shards': 0}}}
2018-09-26 20:05:22,013 DEBUG curator.cli run:126 action_disabled = False
2018-09-26 20:05:22,013 DEBUG curator.cli run:130 continue_if_exception = False
2018-09-26 20:05:22,013 DEBUG curator.cli run:132 timeout_override = None
2018-09-26 20:05:22,013 DEBUG curator.cli run:134 ignore_empty_list = False
2018-09-26 20:05:22,013 DEBUG curator.cli run:136 allow_ilm_indices = False
2018-09-26 20:05:22,014 INFO curator.cli run:146 Preparing Action ID: 1, "rollover"
2018-09-26 20:05:22,014 DEBUG curator.utils get_client:803 kwargs = {'hosts': ['myesmasternode.com'], 'port': 9200, 'http_auth': 'user:password', 'use_ssl': True, 'certificate': '/etc/pki/tls/private/rootCA.pem', 'client_cert': '/etc/pki/tls/private/server.pem', 'ssl_no_validate': True, 'master_only': True, 'aws_key': None, 'aws_token': None, 'aws_secret_key': None, 'aws_sign_request': False, 'url_prefix': '', 'client_key': None, 'timeout': 30}
2018-09-26 20:05:22,018 DEBUG curator.utils get_client:880 Not using "requests_aws4auth" python module to connect.
/opt/elasticsearch-curator/lib/elasticsearch/connection/http_urllib3.py:135: UserWarning: Connecting to myesmasternode.com using SSL with verify_certs=False is insecure.
/opt/elasticsearch-curator/lib/urllib3/connectionpool.py:858: 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment