It seems that date math support index alias names in 7.13, but using date math when creating index template is still wrong, here is the curl cmd and result I get when create template with date math alias
#cmd
curl -XPUT "localhost:9200/_template/test?pretty" -H "Content-Type:application/json" -d '{
"index_patterns": [
"test-*"
],
"order": 0,
"aliases": {
"<test-{now/h}>": {}
}
}'
# result
{
"error": {
"root_cause": [
{
"type": "invalid_alias_name_exception",
"reason": "Invalid alias name [<test-{now/h}>]: must not contain the following characters [ , \", *, \\, <, |, ,, >, /, ?]"
}
],
"type": "invalid_alias_name_exception",
"reason": "Invalid alias name [<test-{now/h}>]: must not contain the following characters [ , \", *, \\, <, |, ,, >, /, ?]"
},
"status": 400
}