logstash-input-mongodb icon indicating copy to clipboard operation
logstash-input-mongodb copied to clipboard

How to handle multi dimensional objects

Open yanosh-igor opened this issue 9 years ago • 2 comments

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
  }

yanosh-igor avatar Jan 21 '16 15:01 yanosh-igor

facing same issue...please specify if you are able to resolve

harshit1810 avatar Sep 14 '16 13:09 harshit1810

Even I am facing the same issue

AkashHaldankar avatar Nov 30 '16 09:11 AkashHaldankar