I'm running ES 8.13.4, attempting to add the _size field to an index template.
I have successfully installed the _size plugin on all nodes on the cluster, confirmed by issuing GET /_cat/plugins
When I issue:
PUT /_index_template/filebeat-8.14.3/
{
"mappings": {
"_size": {
"enabled": true
}
}
}
I get the following response:
{
"error": {
"root_cause": [
{
"type": "x_content_parse_exception",
"reason": "[2:3] [index_template] unknown field [mappings]"
}
],
"type": "x_content_parse_exception",
"reason": "[2:3] [index_template] unknown field [mappings]"
},
"status": 400
}
As a bonus question, how do I make changes like this survive Filebeat updates? It seems like a new index template is created whenever Filebeat is updated. Is there a....template for templates?