[2020-04-25T01:23:57,058][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"wl_audit-2020.04.25", :_type=>"doc", :routing=>nil}, #LogStash::Event:0x75cf378], :response=>{"index"=>{"_index"=>"wl_audit-2020.04.25", "_type"=>"doc", "_id"=>"QlyTr3EBe85au3CB40Vy", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"object mapping for [log] tried to parse field [log] as object, but found a concrete value"}}}}
It seems you have a mapping conflict. The mapping expects the logfield to be an object, but in the document causing the error it instead is a string or a number, which is not allowed.
@Christian_Dahlqvist, again thanks,
I corrected it as follows, the log field was in lowercase, I changed it to uppercase, I did the restart and it worked, thanks by the fast answer
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.