Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Created February 22, 2019 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matschaffer/9019b42f8b83fc823d3193544b485d7e to your computer and use it in GitHub Desktop.
Save matschaffer/9019b42f8b83fc823d3193544b485d7e to your computer and use it in GitHub Desktop.
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