Sign inSign up

jxch/elasticsearch-curator

By jxch

Updated over 1 year ago

https://github.com/jxch-docker/docker-build/tree/main/elasticsearch-curator

Image
0

410

jxch/elasticsearch-curator repository overview

services:
  elasticsearch-curator:
    image: jxch/elasticsearch-curator:8.0.21
    volumes:
      - ./actions.yml:/app/actions.yml
      - ./config.yml:/app/config.yml

config.yml

elasticsearch:
  client:
    hosts: ["http://elasticsearch:9200"]
    request_timeout: 60
    verify_certs: false         # 非 https 可为 false
  other_settings:
    master_only: false
    skip_version_test: false
    username: elastic
    password: password

logging:
  loglevel: INFO
  logfile: /var/log/curator.log
  logformat: default
  blacklist: []

actions.yml

actions:
  1:
    action: delete_indices
    description: >-
      Delete indices older than 7 days (based on index name).
    options:
      ignore_empty_list: True
      disable_action: False
    filters:
      - filtertype: pattern
        kind: prefix
        value: logs-
      - filtertype: age
        source: name
        direction: older
        timestring: '%Y.%m.%d'
        unit: days
        unit_count: 7

Tag summary

Content type

Image

Digest

sha256:bf00fdc3d

Size

54.2 MB

Last updated

over 1 year ago

docker pull jxch/elasticsearch-curator:8.0.21