馆长没有删除索引

时间:2019-06-27 03:32:23

标签: elasticsearch elasticsearch-curator

我是策展人的新手。我想了解策展人的工作原理,因此在Mac上安装了策展人,并创建了一个操作文件和一个配置文件,以从弹性搜索中删除所有索引。 但是每当我运行命令

curator --config ./config.yml --dry-run ./action.yml

我得到的输出为

2019-06-27 12:06:49,848 INFO      Preparing Action ID: 1, 
"delete_indices"
2019-06-27 12:06:49,854 INFO      Trying Action ID: 1, 
"delete_indices": Delete selected indices
2019-06-27 12:06:49,866 INFO      DRY-RUN MODE.  No changes will be 
made.
2019-06-27 12:06:49,866 INFO      (CLOSED) indices may be shown that 
may not be acted on by action "delete_indices".
2019-06-27 12:06:49,866 INFO      Action ID: 1, "delete_indices" 
completed.
2019-06-27 12:06:49,867 INFO      Job completed.

我认为索引已删除,但是我可以在Elastic search中看到所有索引。

我看不到任何错误调试真的很困难

我正在共享两个文件: config.yml

---
# Remember, leave a key empty if there is no value.  None will be a 
string,
# not a Python "NoneType"
client:
  hosts:
    - 127.0.0.1
  port: 9200
  url_prefix:
  use_ssl: False
  certificate:
  client_cert:
  client_key:
  ssl_no_validate: False
  http_auth:
  timeout: 30
  master_only: False

logging:
  loglevel: INFO
  logfile:
  logformat: default
blacklist:

action.yml:

---
# Remember, leave a key empty if there is no value.  None will be a 
string,
# not a Python "NoneType"
#
# Also remember that all examples have 'disable_action' set to True.  
If you
# want to use this action as a template, be sure to set this to False 
after
# copying it.
actions:
  1:
    action: delete_indices
    description: "Delete selected indices"
    options:
    timeout_override: 300
    continue_if_exception: False
    filters:
    - filtertype: age
      source: creation_date
      direction: older
      timestring: '%Y.%W'
      unit: days
      unit_count: 30

我这周创建了索引。 预先感谢您的帮助^^

0 个答案:

没有答案