Curator_cli过渡不生成新索引

时间:2020-09-01 07:29:21

标签: elasticsearch elasticsearch-curator

我正在使用策展人版本5.8.1。我打算在年底用策展人取代rundeck。我正在使用curator_cli进行操作。我有 curator.yml 对我有用。我已经成功地通过以下 create index'action.yml'文件创建了新索引。

actions:
  1:
    action: create_index
    description: Create the index associated with write alias.
    options:
      name: "<conlogtest-{now{YYYY-MM-dd-HH-mm}}>"
      continue_if_exception: True
      disable_action: false
      extra_settings:
        index.number_of_shards: 3
        index.number_of_replicas: 1

现在,当我尝试进行滚动操作时,我没有收到任何错误,但仍然看不到任何新索引根据条件替换旧索引。请检查滚动“ action.yml” 文件以进行滚动操作。

actions:
  1:
    action: rollover
    description: Rollover the index associated with write alias.
    options:
      disable_action: False
      name: 'conlogtest'
      new_index: '<conlogtest-{now{YYYY-MM-dd-HH-mm}}>'
      conditions:
        max_age: 1m  # plan to change this by 1h once i start getting expected result.
        max_size: 30gb
      wait_for_active_shards: 1
      continue_if_exception: False
      extra_settings:
        index.number_of_shards: 3

过去几行滚动操作日志。

2020-08-31 10:48:08,546 INFO                 curator.cli                    run:162  Creating client object and testing connection
2020-08-31 10:48:08,546 DEBUG              curator.utils             get_client:809  kwargs = {'hosts': ['https://search-<###edited###>.us-east-1.es.amazonaws.com'], 'use_ssl': False, 'ssl_no_validate': False, 'master_only': False, 'client_cert': None, 'certificate': None, 'aws_key': None, 'aws_secret_key': None, 'aws_token': None, 'http_auth': None, 'aws_sign_request': False, 'url_prefix': '', 'client_key': None, 'port': 9200, 'timeout': 30}
2020-08-31 10:48:08,546 DEBUG              curator.utils             get_client:871  Checking for AWS settings
2020-08-31 10:48:08,549 DEBUG              curator.utils             get_client:886  "requests_aws4auth" module present, but not used.
2020-08-31 10:48:08,550 INFO               curator.utils             get_client:903  Instantiating client object
2020-08-31 10:48:08,550 INFO               curator.utils             get_client:906  Testing client connectivity
2020-08-31 10:48:08,569 DEBUG              curator.utils             get_client:907  Cluster info: {'name': '###edited###', 'cluster_name': '###edited###', 'cluster_uuid': '###edited###', 'version': {'number': '6.8.0', 'build_flavor': 'oss', 'build_type': 'tar', 'build_hash': '###edited###', 'build_date': '2020-04-28T01:07:12.310753Z', 'build_snapshot': False, 'lucene_version': '7.7.0', 'minimum_wire_compatibility_version': '5.6.0', 'minimum_index_compatibility_version': '5.0.0'}, 'tagline': 'You Know, for Search'}
2020-08-31 10:48:08,569 INFO               curator.utils             get_client:908  Successfully created Elasticsearch client object with provided settings
2020-08-31 10:48:08,569 DEBUG              curator.utils             get_client:932  Checking Elasticsearch endpoint version...
2020-08-31 10:48:08,573 DEBUG              curator.utils          check_version:693  Detected Elasticsearch version 6.8.0
2020-08-31 10:48:08,573 DEBUG              curator.utils             get_client:951  Not verifying local master status (master_only: false)

请让我知道我是否缺少某些内容,因为我看不到新索引替代旧索引。 附言-从日志中忽略“ ### edited ###”部分。

还要检查以下我的 curator.yml 文件以供参考。

---
client:
  hosts:
    - https://###edited###.us-east-1.es.amazonaws.com
  url_prefix:
  use_ssl: False
  certificate:
  client_cert:
  client_key:
  ssl_no_validate: False
  http_auth:
  timeout: 30
  master_only: False

logging:
  loglevel: DEBUG
  logfile: /home/user/logs/curator/curator.log
  logformat: default
  blacklist: []

0 个答案:

没有答案