Visualizing geo_points on Kibana


(Croos Nilukshan) #1

No results found in visualization. I attached my screen shots.



Mapping Geo-location From Database
(Mark Walkom) #2

Do you have the geo point correctly mapped?
This is a pretty common issue, so I'd check other thread with similar questions.


(Croos Nilukshan) #3
"mappings": {
      "geo_test": {
        "_timestamp": {
          "enabled": true
        },
        "properties": {
          "first_name": {
            "type": "string",
            "analyzer": "standard"
          },
          "location": {
            "type": "geo_point"
          }
        }
      }
    }

This is my mapping, and the following is the sample documents.

"hits": [
      {
        "_index": "croos_test",
        "_type": "data",
        "_id": "16778495",
        "_score": 1,
        "_source": {
          "message": "16778495,Melbourne,-37.814,144.96332\r",
          "@version": "1",
          "@timestamp": "2016-02-29T09:30:26.368Z",
          "path": "country1.csv",
          "host": "Lenovo-PC",
          "type": "data",
          "id": "16778495",
          "first_name": "Melbourne",
          "location": {
            "lat": "-37.814",
            "lon": "144.96332"
          }
        }
      },
      {
        "_index": "croos_test",
        "_type": "data",
        "_id": "16793599",
        "_score": 1,
        "_source": {
          "message": "16793599,Guangzhou,23.11667,113.25\r",
          "@version": "1",
          "@timestamp": "2016-02-29T09:30:26.376Z",
          "path": "country1.csv",
          "host": "Lenovo-PC",
          "type": "data",
          "id": "16793599",
          "first_name": "Guangzhou",
          "location": {
            "lat": "23.11667",
            "lon": "113.25"
          }
        }
]

(system) #4