I am trying to test out this feature but not getting what I want
for example
PUT _index_template/sachin_quick_test
{
"index_patterns": ["sachin_quick_test-*"],
"template": {
"settings": {
"number_of_shards": 1
},
"mappings" : {
"dynamic": "strict",
"properties" : {
"@timestamp" : {
"type" : "date"
},
"@version" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"day" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
}
}
Template gets created. and I can see it then when I put the data and day="string" it works
but it still does work when I put data=123 and explicitly convert to integer or not convert. it gets saved in elk as integer
Reason I know it works because if I change number_of_shards setting to 2 it does creates two shard that means it is using this template.
is my syntax is wrong for dynamic?