# Index not listed only when trying to add a map

**URL:** https://discuss.elastic.co/t/index-not-listed-only-when-trying-to-add-a-map/200222
**Category:** Kibana
**Created:** [September 19, 2019, 2:12pm UTC](https://discuss.elastic.co/t/index-not-listed-only-when-trying-to-add-a-map/200222 "2019-09-19T14:12:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Travis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/travis/32/54079_2.png) [@Travis](https://discuss.elastic.co/u/Travis)
#### Post date: [September 19, 2019, 2:12pm UTC](https://discuss.elastic.co/t/index-not-listed-only-when-trying-to-add-a-map/200222/1 "2019-09-19T14:12:06Z")

</div>

Hello,

Kibana has well identified my index (ims\_cyber\_logs). **I can see the logs in Discover** and build some classic visualization like bar, char, area..

But when I try to build a map, and specifically by selecting a source like Documents or Grid Aggregation, my index is not listed. **There is only the Kibana data sample logs** :

![index_nok](https://us1.discourse-cdn.com/elastic/original/3X/8/b/8bc31edbc234edc0f038b2cc11412d6d8fd61491.png)

What is **strange** is I can build a Vector Shape like World Countires, and in the "Terms join" section, I can select my index as you can see here :

 ![index_ok](https://us1.discourse-cdn.com/elastic/original/3X/f/d/fd8c6d641e598f2bbb8bb9b35766783fc4868679.png)

Index is fresh. As I can see my index in a specific place and not in another I don't understand this behavior.

Would you have some ideas to figure this out ?

Thank you !

---

<div class="post-metadata">

### Author: ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)
#### Post date: [September 19, 2019, 7:31pm UTC](https://discuss.elastic.co/t/index-not-listed-only-when-trying-to-add-a-map/200222/2 "2019-09-19T19:31:30Z")

</div>

> But when I try to build a map, and specifically by selecting a source like Documents or Grid Aggregation, my index is not listed. **There is only the Kibana data sample logs** 🙂

The `Index pattern` for Documents only shows index patterns with a field mapped as `geo_point` or `geo_shape`.

You can look in the documentation for more details at [Vector layer | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/vector-layer.html)

 ![21%20PM](https://us1.discourse-cdn.com/elastic/original/3X/3/0/30c70f818bb6e57b6e2e4dd295977c17b7425a16.png)

How is your geospatial data indexed? Did you index the field as [geo\_point](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html) or [geo\_shape](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html)?

---

<div class="post-metadata">

### Author: ![Travis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/travis/32/54079_2.png) [@Travis](https://discuss.elastic.co/u/Travis)
#### Post date: [September 20, 2019, 12:45pm UTC](https://discuss.elastic.co/t/index-not-listed-only-when-trying-to-add-a-map/200222/3 "2019-09-20T12:45:50Z")

</div>

Indeed I don't have these fields.... I think this is because I use custom template

So I had to create a new template to have geopoint field :

```
 PUT /_template/ims_ilm_template
{
  "index_patterns": ["ims_cyber_logs-*"], 
  "settings": {
    "number_of_shards": 3, 
    "number_of_replicas": 1,
	"index.lifecycle.name": "ims_ilm_policy",      
    "index.lifecycle.rollover_alias": "ims_cyber_logs",
    "index.routing.allocation.include.box_type": "hot"
  }, 
    "mappings" : {
      "properties" : {
        "geoip" : {
          "dynamic" : true,
          "properties" : {
            "ip" : {
              "type" : "ip"
            },
            "latitude" : {
              "type" : "half_float"
            },
            "location" : {
              "type" : "geo_point"
            },
            "longitude" : {
              "type" : "half_float"
            }
          }
        },
        "@version" : {
          "type" : "keyword"
        }
      }
    }
}

```

Thanks a lot for your help @Nathan_Reese ! 😀

---

<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: [October 18, 2019, 12:45pm UTC](https://discuss.elastic.co/t/index-not-listed-only-when-trying-to-add-a-map/200222/4 "2019-10-18T12:45:54Z")

</div>

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