Skip to content

Instantly share code, notes, and snippets.

@spaced
Created January 28, 2019 12:31
Show Gist options
  • Save spaced/b8d7883df398e5825be04275996bcc93 to your computer and use it in GitHub Desktop.
Save spaced/b8d7883df398e5825be04275996bcc93 to your computer and use it in GitHub Desktop.
elasticsearch curator configmap
configMaps:
# Delete indices older than 7 days
action_file_yml: |-
---
actions:
1:
action: delete_indices
description: "Clean up ES by deleting old indices"
options:
timeout_override:
continue_if_exception: False
disable_action: False
ignore_empty_list: True
filters:
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: 7
field:
stats_result:
epoch:
exclude: False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment