Can we create index template without mappings?

I dont know the types of field coming from log, so can we create template without mapping of field like below.

PUT _template/test
{
"index_patterns": "test*",
"settings": {
"number_of_shards": 3,
"number_of_replicas": 1
}
}

Yes you can.

thanks for superfast reply!!!
Is there any drawbacks(any performance issue,slowness etc), by creating template with this method.

Can't see any.

with below method.

PUT _template/test
{
"index_patterns": "test*",
"settings": {
"number_of_shards": 3,
"number_of_replicas": 1
}
}

I meant that I "can't see any" problem.

Thanks for help!!!

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