Hello community!
I'm running Elasticsearch 6.8 to store logs collected using graylog and I would like to reduce the amount of shards of the older indices.
Using curator I've been able to shrink the shards from 6 to 1, when I reindex them in order to rename them to the original one, the amount of shards goes up again to 4.
Do you have any template for the graylog_100 indices?
The number of shards is probably defined in an template, you will need to edit the template to change the number of shards from 4 to any number you want.
Use the _cat/templates and _cat/templates/template-name APIs to check the templates.
Also, Graylog dropped support for Elasticsearch, the last version they support is the 7.10 which is also approaching EOL.
Hello Leandro,
thank you for the hint. I've been able to override the setting from the template (which is needed for the creation of the newest indices) creating an empty index named "graylog_100" with the desired amount of shards before the reindexing
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.