Куратор не удаляет индексы - PullRequest
0 голосов
/ 27 июня 2019

Я новичок в кураторе.Я хочу посмотреть, как работает куратор, поэтому установил куратор на мой 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

Я создалИндекс на этой неделе.Заранее спасибо за помощь ^^

...