# Geo\_point & index\_templates not working

**URL:** <https://discuss.elastic.co/t/geo-point-index-templates-not-working/100742>\
**Category:** Elasticsearch\
**Created:** [September 16, 2017, 2:37am UTC](https://discuss.elastic.co/t/geo-point-index-templates-not-working/100742 "2017-09-16T02:37:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cptnclvn](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@cptnclvn](https://discuss.elastic.co/u/cptnclvn)\
**Post date:** [September 16, 2017, 2:37am UTC](https://discuss.elastic.co/t/geo-point-index-templates-not-working/100742/1 "2017-09-16T02:37:06Z")

</div>

I have been trying to get the GeoIP working for visualization of my firewall logs and I can't get the geo\_point type to stick. I have read through [this](https://www.elastic.co/blog/geoip-in-the-elastic-stack) article and took some information from it. I have an index template that changes my geoip.location type to a geo\_point but when i look in Kibana i can see that it hasn't changed even though the mapping for that index shows it is of a geo\_point type.

Elasticsearch, Kibana, Logstash versions are all 5.2.1  
Any suggestions?

```
"geoip": {
            "properties": {
              "city_name": { },
              "continent_code": { },
              "country_code2": { },
              "country_code3": { },
              "country_name": { },
              "dma_code": { },
              "ip": { },
              "latitude": {
                "type": "half_float"
              },
              "location": {
                "type": "geo_point"
              },
              "longitude": {
                "type": "half_float"
              },
              "postal_code": { },
              "region_code": { },
              "region_name": { },
              "timezone": { }
            }
          },

```

 ![04 PM](https://us1.discourse-cdn.com/elastic/original/3X/f/e/fe93970a09fc8f8985eafad0a9e466b8da59d982.png)

```
{
  "order": 0,
  "template": "pfsense-*",
  "settings": {
    "index": {
      "number_of_shards": "1",
      "number_of_replicas": "0"
    }
  },
  "mappings": {
    "syslog": {
      "properties": {
        "geoip": {
          "properties": {
            "latitude": {
              "type": "half_float"
            },
            "location": {
              "type": "geo_point"
            },
            "longitude": {
              "type": "half_float"
            }
          }
        }
      }
    }
  },
  "aliases": {}
}

```

![27 PM](https://us1.discourse-cdn.com/elastic/original/3X/d/6/d681c06670bd4028b756bc899dc07e0bcdf00bc8.png)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 16, 2017, 4:13am UTC](https://discuss.elastic.co/t/geo-point-index-templates-not-working/100742/2 "2017-09-16T04:13:04Z")

</div>

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them. 🙂

---

<div class="post-metadata">

**Author:** ![cptnclvn](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@cptnclvn](https://discuss.elastic.co/u/cptnclvn)\
**Post date:** [September 16, 2017, 12:41pm UTC](https://discuss.elastic.co/t/geo-point-index-templates-not-working/100742/3 "2017-09-16T12:41:32Z")

</div>

Thanks, I have edited the post to include block quotes of the template and the mappings as showing in the pictures.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 18, 2017, 12:17am UTC](https://discuss.elastic.co/t/geo-point-index-templates-not-working/100742/4 "2017-09-18T00:17:17Z")

</div>

Did you refresh the mappings for the index pattern in Kibana?

---

<div class="post-metadata">

**Author:** ![cptnclvn](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@cptnclvn](https://discuss.elastic.co/u/cptnclvn)\
**Post date:** [September 18, 2017, 5:19pm UTC](https://discuss.elastic.co/t/geo-point-index-templates-not-working/100742/5 "2017-09-18T17:19:39Z")

</div>

I did not know this was a thing. I ended up trying it and there was a conflict. I tried re-indexing the data and decided it was easier just to remove all the indexes and let it start fresh. It is working now. Thank you!

---

<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 16, 2017, 5:19pm UTC](https://discuss.elastic.co/t/geo-point-index-templates-not-working/100742/6 "2017-10-16T17:19:46Z")

</div>

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