Getting the following error while uploading the ES index template.
$ curl -H 'Content-Type: application/json' -XPUT http://localhost:9200/_template/logs_template?pretty -d @logs_template.json
{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "Root mapping definition has unsupported parameters: [app : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [container : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [code_file : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [dst_connect_time : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [container_name : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [content_type : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [app_instance : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [code_line : {type=long}] [code_func : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [dst_ip : {type=ip}]"
}
],
"type" : "mapper_parsing_exception",
"reason" : "Failed to parse mapping [_default_]: Root mapping definition has unsupported parameters: [app : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [container : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [code_file : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [dst_connect_time : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [container_name : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [content_type : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [app_instance : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [code_line : {type=long}] [code_func : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [dst_ip : {type=ip}]",
"caused_by" : {
"type" : "mapper_parsing_exception",
"reason" : "Root mapping definition has unsupported parameters: [app : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [container : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [code_file : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [dst_connect_time : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [container_name : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [content_type : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [app_instance : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [code_line : {type=long}] [code_func : {type=text, fields={keyword={ignore_above=256, type=keyword}}}] [dst_ip : {type=ip}]"
}
},
"status" : 400
}
}
Here is my index template I have verified on jsonlint that it's a valid json not sure what's causing the issue?
No existing index is present
$ curl http://localhost:9200/_cat/indices?pretty
green open .kibana e5a5icv9RXmA4-PGafo6eA 1 0 2 0 14.3kb 14.3kb
ES version is 6.2.4