My application will create Elasticsearch index at hourly interval.
Pattern: test-yyyy-mm-dd-HH
Example indices are test-2020-10-01-01, test-2020-10-01-02 and so on
For example, Say current time is Thu Dec 31 13:26:20 UTC 2020, I will run the following template, this will pattern will effect from 2020-12-31-14 . But I want to make the template effect from 2021-01-01-00 (starting from beginning of the day). Is it possible to do it?
PUT _index_template/daily_logs
{
"index_patterns": [
"test-*"
],
"template": {
"aliases": {
"my_logs": {}
},
"settings": {
"number_of_shards": 2,
"number_of_replicas": 1
},
"mappings": {
"properties": {
"value": {
"type": "double"
}
"name": {
"type": "keyword"
}
}
}
}
}