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