Error in creating logstash

I am trying to create indices for netflow data using the netflow plugins since I have created my own template I am getting error while creating indices:
[WARN ] 2019-07-01 13:44:45.088 [[main]>worker0] elasticsearch - Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"logstash_netflow-2019.07.01", :_type=>"doc", :routing=>nil}, #LogStash::Event:0x3035a619], :response=>{"index"=>{"_index"=>"logstash_netflow-2019.07.01", "_type"=>"doc", "_id"=>"-q-ZrGsBxxoJYzlFuseq", "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"Rejecting mapping update to [logstash_netflow-2019.07.01] as the final mapping would have more than 1 type: [_doc, doc]"}}}}
What should I do???

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.