# Create geo\_point field in filebeat index (elasticseach 6.2.4)

**URL:** <https://discuss.elastic.co/t/create-geo-point-field-in-filebeat-index-elasticseach-6-2-4/129833>\
**Category:** Elasticsearch\
**Created:** [April 27, 2018, 12:49pm UTC](https://discuss.elastic.co/t/create-geo-point-field-in-filebeat-index-elasticseach-6-2-4/129833 "2018-04-27T12:49:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsheridan](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@nsheridan](https://discuss.elastic.co/u/nsheridan)\
**Post date:** [April 27, 2018, 12:49pm UTC](https://discuss.elastic.co/t/create-geo-point-field-in-filebeat-index-elasticseach-6-2-4/129833/1 "2018-04-27T12:49:47Z")

</div>

Hi forum I've just got my shiny new elastic 6.2.4 up and created my own grok filters to parse my logs, loaded the geoplugin, and boom! I got co-ordinates but no geo\_point field to plot!

Please help!! I tried to load a filebeat template in - but i think its from a old 5.x elastic version - need help and lots of patience!!!

Thanks nik

---

<div class="post-metadata">

**Author:** ![nsheridan](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@nsheridan](https://discuss.elastic.co/u/nsheridan)\
**Post date:** [April 27, 2018, 3:42pm UTC](https://discuss.elastic.co/t/create-geo-point-field-in-filebeat-index-elasticseach-6-2-4/129833/2 "2018-04-27T15:42:03Z")

</div>

Ok I have used this template

```
            _....cut...._
            "geoip": {
              "properties": {
                "city_name": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "continent_name": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "country_iso_code": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "location": {
                  "type": "geo_point"
                },
                "region_name": {
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            _....cut...._

```

I write this to a local file from my editor and then post it

`curl -XPUT 'http://localhost:9200/_template/filebeat?pretty' -d@filebeat_template.nik.json -H 'Content-Type: application/json'`

If I mess it up I have deleted it

`curl -XDELETE 'http://localhost:9200/_template/filebeat?pretty'`

And retrieve it:

`curl -XGET 'http://localhost:9200/_template/filebeat?pretty'`

Any help at all would be great. I changed apache to log as the log type in my filebeat is "log"

---

<div class="post-metadata">

**Author:** ![nsheridan](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@nsheridan](https://discuss.elastic.co/u/nsheridan)\
**Post date:** [April 28, 2018, 9:41am UTC](https://discuss.elastic.co/t/create-geo-point-field-in-filebeat-index-elasticseach-6-2-4/129833/3 "2018-04-28T09:41:09Z")

</div>

> [@nsheridan](#):
>
> curl -XDELETE '[http://localhost:9200/\_template/filebeat?pretty](http://localhost:9200/_template/filebeat?pretty)'

Oddly enough I have a logstash index which has all my data and also the geo reference to plot my locations  
I wish I could provide an educated explanation as to why, but I have what I need

---

<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 26, 2018, 9:52am UTC](https://discuss.elastic.co/t/create-geo-point-field-in-filebeat-index-elasticseach-6-2-4/129833/4 "2018-05-26T09:52:51Z")

</div>

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