Skip to content

Instantly share code, notes, and snippets.

@tksugimoto
Created October 15, 2017 15:46
Show Gist options
  • Save tksugimoto/5ed3bf6df4f8bd61210563081d390a57 to your computer and use it in GitHub Desktop.
Save tksugimoto/5ed3bf6df4f8bd61210563081d390a57 to your computer and use it in GitHub Desktop.
elasticsearch-curator
client:
hosts:
- localhost
port: 9200
curator.exe --config curator-configuration.yml remove-old-data.yml
pause
actions:
1:
action: delete_indices
options:
ignore_empty_list: True
timeout_override:
continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: metricbeat-
exclude:
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: 7
exclude:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment