Hi All,
I am getting the following error while index a document:
[2018-10-02T08:00:11,897][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"clog-2018.10.02", :_type=>"doc", :_routing=>nil}, #LogStash::Event:0x23999e37], :response=>{"index"=>{"_index"=>"clog-2018.10.02", "_type"=>"doc", "_id"=>"mNRcM2YBN0hyJV_JzDLg", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [host]", "caused_by"=>{"type"=>"illegal_state_exception", "reason"=>"Can't get text on a START_OBJECT at 1:520"}}}}}
This of course is a problem. Is there a way to dump the document that is causing this error?