Hi guys,
Is this possible?
curl -X PUT "localhost:9200/template/template_1" -H 'Content-Type: application/json' -d'
{
"index_patterns" : ["*"],
"aliases" : {
"{index}{date}" : {}
}
}'
I need all time to create a new indice, too create a respective alias, but with the current date.
Ex.:
curl -X PUT "localhost:9200/twitter" # creating a new index
curl -X GET "localhost:9200/twitter/_alias/" # show the alias
{
"twitter" : {
"aliases" : {
"twitter_2019-04-23" : { },
}
}
}