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
index_A_yyyy.mm.dd
index_B_yyyy.mm.dd

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