Optimization

The optimization or forced merging of all the indices with the prefix logstash- into a single shard can be done using the following command:

curator --host 10<IP> optimize --max_num_segments 1 -prefix "logstash-"  --older-than  1 --time-unit days

Here, we setting a number of segments for all indices older than today.

Get Elasticsearch Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.