Book Image

Elasticsearch Blueprints

Book Image

Elasticsearch Blueprints

Overview of this book

Table of Contents (15 chapters)
Elasticsearch Blueprints
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

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.