# Unable to select correct Index in map visualisation

**URL:** https://discuss.elastic.co/t/unable-to-select-correct-index-in-map-visualisation/228466
**Category:** Kibana
**Tags:** maps
**Created:** [April 17, 2020, 7:58am UTC](https://discuss.elastic.co/t/unable-to-select-correct-index-in-map-visualisation/228466 "2020-04-17T07:58:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kagashe](https://avatars.discourse-cdn.com/v4/letter/k/ed655f/32.png) [@kagashe](https://discuss.elastic.co/u/kagashe)
#### Post date: [April 17, 2020, 7:58am UTC](https://discuss.elastic.co/t/unable-to-select-correct-index-in-map-visualisation/228466/1 "2020-04-17T07:58:33Z")

</div>

Hi all, I have ingested some log data with logstash, applied the geoip filter and the geoip fileds are populating however when I try to create a map visualisation, the index with the data is not available?  
What am I missing here?

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [April 17, 2020, 8:27am UTC](https://discuss.elastic.co/t/unable-to-select-correct-index-in-map-visualisation/228466/2 "2020-04-17T08:27:51Z")

</div>

Have you checked if your index mapping has the `geo_point` type where your cordinates are stored? You need to specify the type manually in your index mapping, otherwise the data is inserted as a different type, logstash won't do that for you.

---

<div class="post-metadata">

### Author: ![kagashe](https://avatars.discourse-cdn.com/v4/letter/k/ed655f/32.png) [@kagashe](https://discuss.elastic.co/u/kagashe)
#### Post date: [April 17, 2020, 8:41am UTC](https://discuss.elastic.co/t/unable-to-select-correct-index-in-map-visualisation/228466/3 "2020-04-17T08:41:43Z")

</div>

hi @jsanz I created my index before ingestion with the following code

```auto
PUT /bitvise-geo
{
    "settings" : {
        "number_of_shards" : 1
    },
    "mappings" : {
        "properties" : {
            "geoip.location": { "type": "geo_point" }
        }
    }
}

```

However I don't seem to have a `geoip.location` field in the output only these

```auto
geoip.location.lat
geoip.location.lon
geoip.longitude
geoip.latitude

```

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [April 17, 2020, 10:07am UTC](https://discuss.elastic.co/t/unable-to-select-correct-index-in-map-visualisation/228466/4 "2020-04-17T10:07:34Z")

</div>

Objects are one of the supported types for geo\_point, there's plenty of posts on this topic here at discuss, I've found this one [where a colleague suggests to refresh the index pattern in Kibana](https://discuss.elastic.co/t/unable-to-get-geoip-location-to-a-geo-point-in-es/107252/6?).

What do you see on your index pattern?

Another thing to try is to do a simple geospatial query against your index to confirm your data is stored as geometries, for example:

```auto
GET bitvise-geo/_search
{
  "query": {
    "bool": {
      "must": [{ "match_all": {} }],
      "filter": {
        "geo_bounding_box": {
          "geoip.location": {
            "top_left": { "lat": 90, "lon": -120 },
            "bottom_right": { "lat": -90, "lon": 120}
          } } } } } }

```

---

<div class="post-metadata">

### Author: ![kagashe](https://avatars.discourse-cdn.com/v4/letter/k/ed655f/32.png) [@kagashe](https://discuss.elastic.co/u/kagashe)
#### Post date: [April 17, 2020, 10:43am UTC](https://discuss.elastic.co/t/unable-to-select-correct-index-in-map-visualisation/228466/5 "2020-04-17T10:43:10Z")

</div>

I ended up having to re-create the index pattern but at least it's working now.  
Thanks for your help!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 15, 2020, 10:43am UTC](https://discuss.elastic.co/t/unable-to-select-correct-index-in-map-visualisation/228466/6 "2020-05-15T10:43:12Z")

</div>

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