Hello, I am looking into automating rollover using Index lifecycle management for daily indices.
I am looking for the pattern as follows so that I would be seamlessly able to search across all three indices
rollover-test-2020.09.18 (pre-create template with this alias)
-rollover-test-2020.09.18-000001 (pre-create index)
-rollover-test-2020.09.18-000002
-rollover-test-2020.09.18-000003
rollover-test-2020.09.19 (pre-create template with this alias)
-rollover-test-2020.09.19-000001 (pre-create index)
-rollover-test-2020.09.19-000002
-rollover-test-2020.09.19-000003
As rollover API requires an alias, I have to pre-create indices so that I can use the "is_write_index"
and "alias"
setting for the original index. Also, I figured that I will have to pre-create template for every daily index so that it holds the rollover_alias
(rollover-test-2020-09-19
in above case) settings and when ILM rolls over the index, the new index can apply the rollover alias from the template.
Is there any better solution for this where in I don't have to create template for every daily index?