logstash-input-mongodb
logstash-input-mongodb copied to clipboard
How to handle multi dimensional objects
I have field in mongodb that contains json object. How can I save this document structure into elastic? Example:
in mongodb
"location" : {
"lon" : -71.715313,
"lat" : 42.286992
}
parse_method => "flatten" returns
"location": "{"lon"=>-71.715313, "lat"=>42.286992}"
parse_method => "dig" returns
"location": "{"lon"=>-71.715313, "lat"=>42.286992}"
parse_method => "simple" returns
"location_lon": "-71.715313",
"location_lat": "42.286992",
How can I leave same json structure?
"location" : {
"lon" : -71.715313,
"lat" : 42.286992
}
facing same issue...please specify if you are able to resolve
Even I am facing the same issue