Hello Elastic Community,
I am currently managing multiple Elastic indices formatted like es-project1-app1
, es-project1-app2
,... es-project2-app1
, es-project2-app2
, etc., across various projects. At the moment, it seems I must create a separate template for each index to define its rollover_alias
. This approach is quite cumbersome, and I'm seeking a more streamlined solution.
Is there a way to define a single template per project and apply a specific rollover_alias
for each index? Ideally, I would like to avoid having a separate template for every index while still being able to assign a unique rollover_alias
to each.
For context, here is the current setting for the template of es-project1-app1
:
{
"index": {
"lifecycle": {
"name": "elk-ilm-weekly",
"rollover_alias": "es-project1-app1-alias"
}
}
}
Could anyone guide me on how to configure a template that can apply to multiple indices while allowing for a unique rollover_alias
per index? Any advice or examples would be greatly appreciated.
Thank you in advance for your help!