# Geo\_Point field for mapping

**URL:** https://discuss.elastic.co/t/geo-point-field-for-mapping/330363
**Category:** Logstash
**Created:** [April 20, 2023, 7:57am UTC](https://discuss.elastic.co/t/geo-point-field-for-mapping/330363 "2023-04-20T07:57:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Abdeljalil\_El\_Yousso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdeljalil_el_yousso/32/120026_2.png) [@Abdeljalil\_El\_Yousso](https://discuss.elastic.co/u/Abdeljalil_El_Yousso)
#### Post date: [April 20, 2023, 7:57am UTC](https://discuss.elastic.co/t/geo-point-field-for-mapping/330363/1 "2023-04-20T07:57:26Z")

</div>

hey , im tryin g to create and have and geo\_point field to create a map visualisation , but im finding difficulties , my Lat and Long fields that i extracted previously from Geoip filter on My configuration file are float  
any solutions please to create the Geo\_point field and convert Lat Long field in the geopoint if its possible?  
PS: im using the 8.6 version

MY Logstash config :

 ![Logstachconf](https://us1.discourse-cdn.com/elastic/original/3X/9/6/96da18c88a89536ee1fc37c2034416e2ad360d01.png)

My Template setting on console  
 ![Template on Console](https://us1.discourse-cdn.com/elastic/original/3X/b/0/b050012b2f33a99bdd368d39bff7bc86abeccaff.png)

---

<div class="post-metadata">

### Author: ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)
#### Post date: [April 24, 2023, 5:53pm UTC](https://discuss.elastic.co/t/geo-point-field-for-mapping/330363/2 "2023-04-24T17:53:27Z")

</div>

Hi @Abdeljalil_El_Yousso,  
You are on the right track by using geoip filter. I think the piece you are missing is the correct mapping setting. It's tripped me up before as well. Try:

```auto
"geoip": {
      "type": "object",
      "properties": {
        "ip": {
          "type": "ip"
        },
        "location": {
          "type": "geo_point"
        }
      }

```

---

<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 22, 2023, 5:54pm UTC](https://discuss.elastic.co/t/geo-point-field-for-mapping/330363/3 "2023-05-22T17:54:12Z")

</div>

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