# Set geo location from coodinates

**URL:** https://discuss.elastic.co/t/set-geo-location-from-coodinates/2762
**Category:** Logstash
**Created:** [June 16, 2015, 6:03am UTC](https://discuss.elastic.co/t/set-geo-location-from-coodinates/2762 "2015-06-16T06:03:28Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![roygolan1981](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@roygolan1981](https://discuss.elastic.co/u/roygolan1981)
#### Post date: [June 16, 2015, 6:03am UTC](https://discuss.elastic.co/t/set-geo-location-from-coodinates/2762/1 "2015-06-16T06:03:28Z")

</div>

Hi  
i have latitude+latitude on logstash and i want to set geo point  
i tried

add\_field =\>{ "geoip.location" =\> 13.55 }  
add\_field =\> { "geoip.location" =\> 5.69 }  
and many more permutation of assigning the geoip.location or geoip.coordinates

on kibana i see  
 ![](https://us1.discourse-cdn.com/elastic/original/1X/f0961688d2cda8d4ef2228c39d0b14cf8dc5e72f.png)  
but on visualization i always get the same location, no matter what the coordinate are...

 ![](https://us1.discourse-cdn.com/elastic/original/1X/fd46ee627c0e3c70b98a75a64f00800714ce6345.png)  
what am i doing wrong ?  
how can i insert a Geo location from latitude+latitude??  
thanks a lot  
Roy

---

<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: [June 16, 2015, 10:19am UTC](https://discuss.elastic.co/t/set-geo-location-from-coodinates/2762/2 "2015-06-16T10:19:52Z")

</div>

Have you mapped that field to a geopoint in ES?

---

<div class="post-metadata">

### Author: ![roygolan1981](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@roygolan1981](https://discuss.elastic.co/u/roygolan1981)
#### Post date: [June 16, 2015, 11:54am UTC](https://discuss.elastic.co/t/set-geo-location-from-coodinates/2762/3 "2015-06-16T11:54:19Z")

</div>

do you mean ::

geoip {  
source =\> "clientip"  
target =\> "geoip"  
database =\> "/etc/logstash/GeoLiteCity.dat"  
add\_field =\> ["[geoip][coordinates]", "%{[geoip][longitude]}" ]  
add\_field =\> ["[geoip][coordinates]", "%{[geoip][latitude]}" ]  
}  
mutate {  
convert =\> ["[geoip][coordinates]", "float"]  
}

??  
because i dont want to use the geo from the IP  
i have lat+log  
what do you mean be map?

---

<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: [June 16, 2015, 10:09pm UTC](https://discuss.elastic.co/t/set-geo-location-from-coodinates/2762/4 "2015-06-16T22:09:04Z")

</div>

In ES you need to [map that field](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-geo-point-type.html) to be a geopoint as well.

---

<div class="post-metadata">

### Author: ![Eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@Eric](https://discuss.elastic.co/u/Eric)
#### Post date: [June 17, 2015, 1:32am UTC](https://discuss.elastic.co/t/set-geo-location-from-coodinates/2762/5 "2015-06-17T01:32:58Z")

</div>

hi, have you tried to add some filter to search(i.e. event:add\_biu\_propagation)? When i first use geoip the same thing appeard(every point goes to [0, 0]), but then i add some filter to search, every point goes to the right place, and then i stop search with filters (just "\*"), every point came to be normal... This is weird, haven't figured it out though

---

<div class="post-metadata">

### Author: ![zaakiy](https://avatars.discourse-cdn.com/v4/letter/z/e0b2c6/32.png) [@zaakiy](https://discuss.elastic.co/u/zaakiy)
#### Post date: [November 6, 2015, 1:33pm UTC](https://discuss.elastic.co/t/set-geo-location-from-coodinates/2762/6 "2015-11-06T13:33:35Z")

</div>

Hi Mark, updated link for ES 2.0 is [https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html)  
😄

---

<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: [July 6, 2017, 5:23am UTC](https://discuss.elastic.co/t/set-geo-location-from-coodinates/2762/7 "2017-07-06T05:23:36Z")

</div>


