6 Elasticsearch provides a distributed, multitenant-capable full-text search engine with a HTTP web interface and schema-free JSON documents.
11 Single-node elasticsearch with clustering disabled:
27 Setup shared repository for snapshots:
35 path: /var/lib/glusterfs/repo
38 Cluster with manually defined members:
61 Common definition for curator:
69 logfile: /var/log/elasticsearch/curator.log
73 - action: delete_indices
75 Delete indices older than 45 days (based on index name).
76 Ignore the error if the filter does not result in an actionable
77 list of indices (ignore_empty_list) and exit cleanly.
79 ignore_empty_list: True
80 continue_if_exception: False
85 value: '.*\-\d\d\d\d\.\d\d\.\d\d$'
89 timestring: '%Y.%m.%d'
94 Reduce the replica count to 0 for indices older than 30 days
95 (based on index creation_date)
98 wait_for_completion: False
99 continue_if_exception: False
100 disable_action: False
102 - filtertype: pattern
104 value: '.*\-\d\d\d\d\.\d\d\.\d\d$'
106 source: creation_date
112 forceMerge indices older than 2 days (based on index
113 creation_date) to 2 segments per shard. Delay 120 seconds
114 between each forceMerge operation to allow the cluster to
116 This action will ignore indices already forceMerged to the same
117 or fewer number of segments per shard, so the 'forcemerged'
122 continue_if_exception: False
125 - filtertype: pattern
127 value: '.*\-\d\d\d\d\.\d\d\.\d\d$'
129 source: creation_date
137 Client with host and port:
145 host: elasticsearch.host
148 Client where you download an index template that is stored in the directory
157 host: elasticsearch.host
162 template: elasticsearch/files/my_index_template.json
164 Client where you download an index template from the metadata definition and force index creation:
172 host: elasticsearch.host
177 force_operation: true
179 template: notifications
182 number_of_replicas: 1
198 Default elasticsearch client state can only create index temlates. To update exisiting ones according to pillar dedicated state should be run explicitly:
202 salt -C 'I@elasticsearch:client' state.sls elasticsearch.client.update_index_templates
208 * https://www.elastic.co/
209 * http://alex.nederlof.com/blog/2012/11/19/installing-elasticsearch-with-jenkins-on-ubuntu/
210 * http://websightdesigns.com/wiki/Setting_up_Centralized_Event_Parsing_on_Ubuntu_12.04
211 * https://gist.github.com/wingdspur/2026107