in our installation filebeat is writing indices with different name depending on fields of the message which are sent to elasticsearch. For all these indices the same index template is used.
Is it possible to assign different lifecycle policies to the different indices ?
AFAIK the assigning of lifecycle policy to an index is done via the index template ? But that means all indices using the same template have the same lifecycle policy assigned. That's not what I want.
You will need to have one template for every index pattern that you want to use a different lifecycle policy.
You can have one template will all your mappings, settings etc, and one template per index pattern with just the lifecycle policy, but with a higher priority, so when the template merges it will use this lifecycle policy.
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.