Hello there,
I would like to ask for help with change of Mapping type _doc to doc.
My new position includes taking care of OpenSearch that runs in cluster on 7 nodes.
Somehow, we managed to delete security index and it took out our access way into dashboard.
After dealing with it our setup is gone and I can’t figure out how it was previous setup.
Logstash sends data from File Beat to OpenSearch but can’t update Index that was somehow created with Mapping type _doc but Logstash wants to update it and expects type = doc.
[2021-12-08T11:59:32,761][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>[“index”, {:_id=>nil, :_index=>“wfm-test-debug-2021.12.08”, :_routing=>nil, :_type=>“doc”}, #LogStash::Event:0x7c935a4d], :response=>{“index”=>{“_index”=>“wfm-test-debug-2021.12.08”, “_type”=>“doc”, “_id”=>“”, “status”=>400, “error”=>{“type”=>“illegal_argument_exception”, “reason”=>“Rejecting mapping update to [wfm-test-debug-2021.12.08] as the final mapping would have more than 1 type: [_doc, doc]”}}}}
Default template for index that logstash has in default.json is
“order”: 0,
“version”: 50003,
“index_patterns”: [
“*”
],
“settings”: {
“index”: {
“codec”: “best_compression”,
“routing”: {
“allocation”: {
“require”: {
“box_type”: “hot”
}
}
},
“analysis”: {
“analyzer”: {
“whitespace”: {
“type”: “keyword”
}
}
},
“number_of_shards”: “2”
}
},
“mappings”: {},
“aliases”: {}
}
Forgive mine ignorance and Any advice is appreciated
Thank you in advanced Krejcar S.