I have upgraded elastic 5.6 to 6.0 and after that events are not indexing from any sources.
The below is a strip from logstash log. I have tried with and without index mapping.
Where can I find the updated index mapping templates?
[2017-11-20T11:37:44,696][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"winlogbeat-2017.11.20", :_type=>"wineventlog", :_routing=>nil}, #LogStash::Event:0x2f9e59e5], :response=>{"index"=>{"_index"=>"winlogbeat-2017.11.20", "_type"=>"wineventlog", "_id"=>"kAiT2F8B8FIdclYYevZJ", "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"Rejecting mapping update to [winlogbeat-2017.11.20] as the final mapping would have more than 1 type: [winlogbeat, wineventlog]"}}}}
What I did was , followed this post Help please.. breaking changes? - #10 by Maekee
and
Changed the logstash output to this:
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
I was not using any index templates for mapping, still I dont understand why it started working!!!
Hi David, my logstash configuration is huge that's why I have copied only the relevant portion. The remaining events processing and added to the indexes.
I have not specified any mapping as it is a new installation. So it might be taking the default mapping?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.