wunzeco.elasticsearch-curator

elasticsearch-curator

Ansible role to install and set up elasticsearch-curator.

Examples

For more examples on how to configure actions, visit https://www.elastic.co/guide/en/elasticsearch/client/curator/4.2/examples.html

- hosts: eshost

  vars:
    elasticsearch_curator_version: 4.2.6
    elasticsearch_curator_client_hosts: localhost
    elasticsearch_curator_client_master_only: True    # To run curator only on the master instance
    elasticsearch_curator_actions:
      - action: delete_indices
        description: >-
          Remove indices that are older than 45 days (based on the index name) for indices that start with logstash-. Ignore errors if no indices are found (ignore_empty_list) and exit without issues.
        options:
          ignore_empty_list: True
          timeout_override:
          continue_if_exception: False
          disable_action: False
        filters:
          - filtertype: pattern
            kind: prefix
            value: logstash-
            exclude:
          - filtertype: age
            source: name
            direction: older
            timestring: "'%Y.%m.%d'"
            unit: days
            unit_count: 45
            exclude:
    elasticsearch_curator_cron_job:
      description: "Run Elasticsearch index cleaning once a week"
      minute:  0
      hour:    0
      day:     '*'
      weekday: 6
      month:   '*'

  roles:
    - wunzeco.elasticsearch_curator

Testing

To test this role, use the command:

kitchen test

Dependencies:

None

Informazioni sul progetto

Installs and Configures elasticsearch-curator

Installa
ansible-galaxy install wunzeco.elasticsearch-curator
Licenza
Unknown
Download
11.3k
Proprietario