Index Alias

Hi,

I want to create an index with name xyz-yyyy-MM.
Index Name should be like : xyz-2020-01
xyz-2020-04
xyz-2020-12
xyz-2021-05

I want to add these index into one in this pattern "xyz" with "*"
Will it be possible to make an alias index with xyz without star?
Kindly Help.

Regards,
Tahseen

Try this to create an alias xyz and then add an index pattern based on this alias

POST /_aliases
{
  "actions" : [
    { "add" : { "index" : "xyz-*", "alias" : "xyz" } }
  ]
}
2 Likes

Hi @ylasri,

It worked.

Thanks,
Tahseen

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