# GeoIP Fields != desired geo\_point type

**URL:** https://discuss.elastic.co/t/geoip-fields-desired-geo-point-type/75954
**Category:** Logstash
**Created:** [February 21, 2017, 8:50pm UTC](https://discuss.elastic.co/t/geoip-fields-desired-geo-point-type/75954 "2017-02-21T20:50:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jc034240](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jc034240](https://discuss.elastic.co/u/jc034240)
#### Post date: [February 21, 2017, 8:50pm UTC](https://discuss.elastic.co/t/geoip-fields-desired-geo-point-type/75954/1 "2017-02-21T20:50:10Z")

</div>

Elastic 2.3.1, Kibana 4.5  
Two fields src\_geoip.location, dest\_geoip.location are being indexed are not the desired geo\_point type, but instead as number. Despite the below:

Logstash Conf file filter section:  
geoip {  
source =\> "SourceIP"  
target =\> "src\_geoip"  
}

geoip {  
source =\> "DestinationIP"  
target =\> "dest\_geoip"  
}

Elastic document mapping:  
"geoip": {  
"dynamic": true,  
"type": "object",  
"properties": {  
"ip": {  
"type": "ip"  
},  
"latitude": {  
"type": "float"  
},  
"location": {  
"type": "geo\_point"  
},  
"longitude": {  
"type": "float"  
},  
"src\_geoip.location": {  
"type": "geo\_point"  
},  
"dest\_geoip.location": {  
"type": "geo\_point"  
}  
}  
},

---

<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: [February 21, 2017, 8:52pm UTC](https://discuss.elastic.co/t/geoip-fields-desired-geo-point-type/75954/2 "2017-02-21T20:52:12Z")

</div>

What is your index name?

---

<div class="post-metadata">

### Author: ![jc034240](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jc034240](https://discuss.elastic.co/u/jc034240)
#### Post date: [February 21, 2017, 9:22pm UTC](https://discuss.elastic.co/t/geoip-fields-desired-geo-point-type/75954/3 "2017-02-21T21:22:16Z")

</div>

abc-xyz-device-2017-02-21

---

<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: [February 21, 2017, 9:27pm UTC](https://discuss.elastic.co/t/geoip-fields-desired-geo-point-type/75954/4 "2017-02-21T21:27:02Z")

</div>

Then it won't match the default LS template, you will need to modify that one or create your own so that the mappings are applied to your index pattern.

---

<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: [March 21, 2017, 9:27pm UTC](https://discuss.elastic.co/t/geoip-fields-desired-geo-point-type/75954/5 "2017-03-21T21:27:43Z")

</div>

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