Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
actions:
1:
action: reindex
description: Reindex 2017 indices to single index
options:
wait_interval: 9
max_wait: -1
request_body:
source:
index: REINDEX_SELECTION
dest:
index: ingest-measurements-2017
filters:
- filtertype: pattern
kind: prefix
value: ingest-measurements-2017-
2:
action: delete_indices
description: Delete all 2017 indices
options:
timeout_override: 300
continue_if_exception: False
filters:
- filtertype: pattern
kind: prefix
value: ingest-measurements-2017-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment