Hello,
I am creating a daily index. Indices look like the following
my-index-2020-08-31
my-index-2020-08-30
my-index-2020-08-29
my-index-yyyy-mm-dd
Is t possible to add to the template an index alias with wildcard?
I want, for example, change the order of the naming.
my-index-2020-08-31 --> index-my-2020-08-31
my-index-2020-08-30 --> index-my-2020-08-30
my-index-yyyy-mm-dd --> index-my-yyyy-mm-dd
Something like
PUT _template/my-index-template
{
"index_patterns" : [
"my-index-*"
],
"settings" : {
"index" : {
"lifecycle" : {
"name" : "ilm-1"
},
"number_of_shards" : "1",
"number_of_replicas" : "1"
}
},
"mappings" : {
"_source" : {
"enabled" : true
},
"properties" : {}
},
"aliases" : {
"index-my*" {}
}
}
Or how can I manage this?
Thanks!