I recently upgraded from ES 2.4.1 to ES 5.1.1 (along with Kibana, & logstash now at 5.1.1) and am getting mapper parsing exceptions;
{"index"=>{"_index"=>"filebeat-2016.12.22", "_type"=>"stunnel", "_id"=>"AVkohgLnKCAslFsq6wTS", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Can't parse [index] value [not_analyzed] for field [version], expected [true] or [false]"}}}}, :level=>:warn}
This is occurring on basically all of my 'types' for this index.
Using Sense, I can query the mapping for this index and type, but unsure of what I need to change in this mapping.
"stunnel": {
"_all": {
"enabled": true,
"norms": false
},
"dynamic_templates": [
{
"template1": {
"match": "*",
"mapping": {
"doc_values": true,
"ignore_above": 1024,
"index": "not_analyzed",
"type": "{dynamic_type}"
}
}
}
],
"properties": {
"@timestamp": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"@version": {
"type": "string",
"index": "not_analyzed",
"ignore_above": 1024,
"fielddata": false
do I want to update version: index as such;
"@version": {
"type": "string",
"index": "false",
"ignore_above": 1024,
"fielddata": false
This is happening for every 'type' I have in this index.