Skip to content

Instantly share code, notes, and snippets.

@jalogisch
Created July 27, 2017 06:20
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 jalogisch/12d7e173c555505854a4f9bffbf3155d to your computer and use it in GitHub Desktop.
Save jalogisch/12d7e173c555505854a4f9bffbf3155d to your computer and use it in GitHub Desktop.
Graylog hot/warm Elasticsearch Cluster Curator config
actions:
1:
action: allocation
description: "Apply shard allocation filtering rules to the specified indices"
options:
key: box_type
value: warm
allocation_type: require
wait_for_completion: true
timeout_override:
continue_if_exception: false
disable_action: false
filters:
- filtertype: pattern
kind: prefix
value: graylog_
- filtertype: age
source: creation_date
direction: older
unit: days
unit_count: 2
2:
action: forcemerge
description: "Perform a forceMerge on selected indices to 'max_num_segments' per shard"
options:
max_num_segments: 1
delay:
timeout_override: 21600
continue_if_exception: false
disable_action: false
filters:
- filtertype: pattern
kind: prefix
value: graylog_
- filtertype: age
source: creation_date
direction: older
unit: days
unit_count: 3
@jalogisch
Copy link
Author

he @nix-power

this action is given to lower the number of segments in the shards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment