Hello,
i am updated my cluster from 5.6.1 to 6.1.1 and i am not able to create new index if i use template
My template
PUT _template/tds_audit
{
"order": 0,
"index_patterns": "logstash-tds_audit*",
"settings": {
"index.number_of_shards": "4"
},
"mappings": {
"tds_audit": {
"properties": {
"operationResponseTime": {
"type": "double"
},
"timeOnWorkQ": {
"type": "double"
},
"rdbmLockWaitTime": {
"type": "double"
},
"clientIOTime": {
"type": "double"
},
"numberOfEntriesReturned": {
"type": "long"
},
"client_ip": {
"type": "ip"
}
}
}
}
}
now i trying to create an index
PUT logstash-tds_audit-200
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "[include_in_all] is not allowed for indices created on or after version 6.0.0 as [_all] is deprecated. As a replacement, you can use an [copy_to] on mapping fields to create your own catch all field."
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [_default_]: [include_in_all] is not allowed for indices created on or after version 6.0.0 as [_all] is deprecated. As a replacement, you can use an [copy_to] on mapping fields to create your own catch all field.",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "[include_in_all] is not allowed for indices created on or after version 6.0.0 as [_all] is deprecated. As a replacement, you can use an [copy_to] on mapping fields to create your own catch all field."
}
},
"status": 400
}
i don't undestand why the "default" mapping still exists
any ideas ?
Regards
Florent