blob: f4b8158300cbcc8bbc38b412273935f8d1cbc7a4 [file] [log] [blame]
Martin Polreich0c7f5672017-04-11 13:27:30 +02001elasticsearch:
2 server:
3 enabled: true
4 bind:
5 address: 0.0.0.0
6 port: 9200
7 curator:
8 timeout: 900
9 logfile: /var/log/elasticsearch/curator.log
10 logformat: json
11 master_only: true
12 actions:
13 - action: delete_indices
14 description: >-
15 Delete indices older than 45 days (based on index name).
16 Ignore the error if the filter does not result in an actionable
17 list of indices (ignore_empty_list) and exit cleanly.
18 options:
19 ignore_empty_list: True
20 continue_if_exception: False
21 disable_action: False
22 filters:
23 - filtertype: pattern
24 kind: regex
25 value: '.*\-\d\d\d\d\.\d\d\.\d\d$'
26 - filtertype: age
27 source: name
28 direction: older
29 timestring: '%Y.%m.%d'
30 unit: days
31 unit_count: 90
32 - action: replicas
33 description: >-
34 Reduce the replica count to 0 for indices older than 30 days
35 (based on index creation_date)
36 options:
37 count: 0
38 wait_for_completion: False
39 continue_if_exception: False
40 disable_action: False
41 filters:
42 - filtertype: pattern
43 kind: regex
44 value: '.*\-\d\d\d\d\.\d\d\.\d\d$'
45 - filtertype: age
46 source: creation_date
47 direction: older
48 unit: days
49 unit_count: 30
50 - action: forcemerge
51 description: >-
52 forceMerge indices older than 2 days (based on index
53 creation_date) to 2 segments per shard. Delay 120 seconds
54 between each forceMerge operation to allow the cluster to
55 quiesce.
56 This action will ignore indices already forceMerged to the same
57 or fewer number of segments per shard, so the 'forcemerged'
58 filter is unneeded.
59 options:
60 max_num_segments: 2
61 delay: 120
62 continue_if_exception: False
63 disable_action: True
64 filters:
65 - filtertype: pattern
66 kind: regex
67 value: '.*\-\d\d\d\d\.\d\d\.\d\d$'
68 - filtertype: age
69 source: creation_date
70 direction: older
71 unit: days
72 unit_count: 2