Import data to kibana maping Geo_point

i have data like :
{
"lon": 106.733924,
"lat": -6.161368
}

and i want to import this data to Kibana With type "geo_point"
"geopoint1": {
"type": "geo_point"
},

but i alway get error "failed to parse field [geopoint1] of type [geo_point]"

how to slove this problem?

Thnks before....

Can you try creating the index and inserting documents in console? What do your failed commands look like?

You should be able to insert geo_points with the following commands

PUT my_index
{
  "mappings": {
    "properties": {
      "location": {
        "type": "geo_point"
      }
    }
  }
}

PUT my_index/_doc/1
{
  "text": "Geo-point as an object",
  "location": { 
    "lat": 41.12,
    "lon": -71.34
  }
}

thnks,,

i had found the error..
"location": {
"lat": 41.12,
"lon": -71.34
this data type must string

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.