Adding max_doc in the index template alias

Is it possible to add the rollover API payload to the alias in index template as follows?
PUT _template/xyz_search_template
{
"index_patterns": [
"log*"
],
....... other attributes ....
"aliases": {
"{index}-alias": {
"conditions": {
"max_docs": 500000,
"max_size": "3gb"
}
}
}

I am not sure how we can capture the 10,000th input or 100,000 th input or whatever max_doc size we wish to condition each index. If this is available in the index template then we can set it up globally. I tried doing so, but when I fetch the template, the settings strip out the conditions. Am I missing the concept?

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