I am seeing the following error when reading a Json event from Redis. 'Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"log4net-2018.06.25", :_type=>"test", :_routing=>nil}, #LogStash::Event:0x4d91924e], :response=>{"index"=>{"_index"=>"log4net-2018.06.25", "_type"=>"test", "_id"=>"Re6_NWQB00WvXcASSa5s", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"object mapping for [JSONObject] tried to parse field [JSONObject] as object, but found a concrete value"}}}}'.
The event I believe the error is occurring on is {
"host": "1",
"sysloglevel": 7,
"timestamp": "1529563119.65299",
"LoggerName": "Program",
"line": "33",
"JSONObject": {
"Name": "theName",
"Description": "theDescription"
},
"message": "See JSONObject",
"Environment": "local",
"Level": "DEBUG",
"accountId": "262",
"employeeId": "231123"
}
Can anyone assist with getting to the root of the error.