I'm using ES 6.0 and beat 6.0.
I check in logstash-plain.log, i got many error like this
[2017-12-12T18:30:25,655][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"fb-fim-dns-6.0.1-2017.50", :_type=>"doc", :_routing=>nil}, #LogStash::Event:0x113962d4], :response=>{"index"=>{"_index"=>"fb-fim-dns-6.0.1-2017.50", "_type"=>"doc", "_id"=>"DMF9SmAB_Dli1qCHfj8b", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"object mapping for [geoip.location] tried to parse field [null] as object, but found a concrete value"}}}}
[2017-12-13T01:14:27,072][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"fb-fim-mail-6.0.1-2017.50", :_type=>"doc", :_routing=>nil}, #LogStash::Event:0x69b5aa0d], :response=>{"index"=>{"_index"=>"fb-fim-mail-6.0.1-2017.50", "_type"=>"doc", "_id"=>"rh_vS2ABGJRfL5NeixeC", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [geoip.location]", "caused_by"=>{"type"=>"i_o_exception", "reason"=>"Current token (START_OBJECT) not numeric, can not use numeric value accessors\n at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@58d69e2; line: 1, column: 905]"}}}}}
[2017-12-13T00:51:04,074][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"wb-fim-terminal-5.6.0-2017.50", :_type=>"wineventlog", :_routing=>nil}, #LogStash::Event:0x5002cce5], :response=>{"index"=>{"_index"=>"wb-fim-terminal-5.6.0-2017.50", "_type"=>"wineventlog", "_id"=>"CBTaS2ABGJRfL5NeE75m", "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"Rejecting mapping update to [wb-fim-terminal-5.6.0-2017.50] as the final mapping would have more than 1 type: [doc, wineventlog]"}}}}
What should i do?. How to slove my problem? Thanks!
I try to add mapping for geoip
but not work
Here is my index template Filebeat teamplate