# Filebeat won't get geo\_points field type

**URL:** <https://discuss.elastic.co/t/filebeat-wont-get-geo-points-field-type/269501>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 7, 2021, 4:40pm UTC](https://discuss.elastic.co/t/filebeat-wont-get-geo-points-field-type/269501 "2021-04-07T16:40:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris6](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@Chris6](https://discuss.elastic.co/u/Chris6)\
**Post date:** [April 7, 2021, 4:40pm UTC](https://discuss.elastic.co/t/filebeat-wont-get-geo-points-field-type/269501/1 "2021-04-07T16:40:39Z")

</div>

I have a json line of input that foes through filebeat. The line is in this format: {"first": "text", "second": "text", "@timestamp": "2021-02-25T08:54:04Z", "location": [-71.34, 41.12] }

I am trying to get the location field in the list to be a geo\_points type but it seems to just make it a number. Sometimes it gets geo\_points but then if I delete the index and reload info into it it goes back to being a number.  
How I am doing this is with a template in filebeat.yml. It looks like this for the template section:

```
> setup.template.overwrite: true
> setup.template.append_fields:
> - name: location
> type: geo_points

```

This seems to no work, but if you look at my filebeat template in kibana it shows that it is geo\_points. But with the data it is a number type. How do I get it to be geo\_points so I can see it on a map.

---

<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 5, 2021, 6:40pm UTC](https://discuss.elastic.co/t/filebeat-wont-get-geo-points-field-type/269501/2 "2021-05-05T18:40:49Z")

</div>

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