Created
October 15, 2017 15:46
-
-
Save tksugimoto/5ed3bf6df4f8bd61210563081d390a57 to your computer and use it in GitHub Desktop.
elasticsearch-curator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client: | |
hosts: | |
- localhost | |
port: 9200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curator.exe --config curator-configuration.yml remove-old-data.yml | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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