Can I apply index template to two index

I create a ilm policy, then index template_A
Can I apply the index template_A to two different index. e.g index_A* and index_B*.
If yes how to set the rollover_alias in the template's setting?

"index": {
"lifecycle": {
"name": "plan_a_policy",
"rollover_alias": "index_A"

Or I need to create template per index?

my index like these

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.