Curator not deleting indices with multiple domain

Hi,
I have created curator and deleting indices on multi-domain but it getting failed. Error:
curator --config curator.yml delete_indices.yml

    2021-02-15 15:41:16,450 INFO      Preparing Action ID: 1, "delete_indices"
    2021-02-15 15:41:16,450 INFO      Creating client object and testing connection
    2021-02-15 15:41:16,453 INFO      Instantiating client object
    2021-02-15 15:41:16,454 INFO      Testing client connectivity
    2021-02-15 15:41:18,321 INFO      Successfully created Elasticsearch client object with provided settings
    2021-02-15 15:41:19,658 INFO      Trying Action ID: 1, "delete_indices": Delete indices older than 30 days based on index name
    2021-02-15 15:41:23,902 ERROR     Failed to complete action: delete_indices.  <class 'elasticsearch.exceptions.NotFoundError'>: NotFoundError(404, 'index_not_found_exception', 'no such index [api-2021-01-22]', api-2021-01-22, index_or_alias)

curator.yml

    ---
    # Remember, leave a key empty if there is no value.  None will be a string,
    # not a Python "NoneType"
    client:
      hosts:
        - api-dev.ops.io
        - api-staging.ops.io
        - api-prod.ops.io
      port: 80
      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: ['elasticsearch', 'urllib3']

delete_indices.yml

    ---
    actions:
      1:
        action: delete_indices
        description: >-
          Delete indices older than 30 days based on index name
        options:
           ignore_empty_list: True
           disable_action: False
        filters:
        - filtertype: pattern
          kind: regex
          value: '(api|client-api|call-svc|bank-svc)-*'
        - filtertype: age
          source: name
          direction: older
          timestring: '%Y-%m-%d'
          unit: days
          unit_count: '15'

While with one domain is working fine. I am using aws elasticsearch.

This use case has never been supported. Multiple hosts is only supported within the same cluster as a round-robin or fail-over tactic. You must run an instance of Curator per cluster.

@theuntergeek . Thanks for the answer.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.