Hello,
Is there a way to set dynamic templates using fields.yml?
Is there a change for dynamic templates in 6.2? Before on Beats 5.5 both text and keyword are assigned when there's a string.
I want to set the default dynamic template as shown below for all indices. I tried to use PUT in Kibana dev tools but it's unsuccessful.
PUT my_index
{
"mappings": {
"_doc": {
"dynamic_templates": [
{
"strings": {
"match_mapping_type": "string",
"mapping": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
}
}
}
}
}
]
}
}
}
For now the dynamic template is this; I don't want this:
"dynamic_templates": [
{
"strings_as_keyword": {
"match_mapping_type": "string",
"mapping": {
"ignore_above": 1024,
"type": "keyword"
}
}
}
Thank you.