0

我是新来的策展人。我想看看 curator 是如何工作的,所以在我的 mac 上安装了 curator,我创建了一个操作文件和一个配置文件来从弹性搜索中删除所有索引。但是每当我运行命令

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.

我以为索引被删除了,但我可以在弹性搜索上看到所有索引。

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

我正在共享这两个文件: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:

动作.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

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

4

0 回答 0