We want to reduce the amount of shards that each .security_audit_log template is generating on a daily basis. At the moment it is creating 5 shards each day and we want to reduce it to 1 primary and 1 replica.
Does the process of updating templates differ from a normal index when compared to system index? Or do we just run a PUT request and replace the values that we want to set?
However, if i update the template i effectively overwrite it yes? Is there a way i can mess up the predefined settings for the existing template? I would like to keep the existing template to 95%, just that i want to change how many shards each index creates.
Please be patient in waiting for responses to your question and refrain from
pinging multiple times asking for a response. This is a community forum, it may take time for someone to reply to your question. For more information please refer to the Community Code of Conduct specifically the section "Be patient".
I'm sure someone will be able to offer some valuable feedback soon
The supported option is to follow @martinr_ubi's advice above.
Set the number of shards and replicas under xpack.security.audit.index.settings in your elasticsearch.yml
You can edit the template, but we cannot guarantee that your updates will be retained when you upgrade.
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.