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.