# Help on Geo Point Set up

**URL:** <https://discuss.elastic.co/t/help-on-geo-point-set-up/55307>\
**Category:** Logstash\
**Created:** [July 12, 2016, 2:43pm UTC](https://discuss.elastic.co/t/help-on-geo-point-set-up/55307 "2016-07-12T14:43:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spraveenjd](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@spraveenjd](https://discuss.elastic.co/u/spraveenjd)\
**Post date:** [July 12, 2016, 2:43pm UTC](https://discuss.elastic.co/t/help-on-geo-point-set-up/55307/1 "2016-07-12T14:43:27Z")

</div>

I have logstatsh configured as below, and also I have deleted the logstatsh template using "curl -XDELETE '[http://localhost:9200/\_template/logstash](http://localhost:9200/_template/logstash)'"

input {  
jdbc {  
jdbc\_driver\_library =\> "/app/elk/lib/ojdbc7.jar"  
jdbc\_driver\_class =\> "Java::oracle.jdbc.driver.OracleDriver"  
jdbc\_connection\_string =\> "jdbc:oracle:thin:@DATABASE CONNECTION"  
jdbc\_user =\> "username"  
jdbc\_password =\> "password"

```
            statement => "SELECT location_id, latitude, longitude, FROM addresses "
    }

```

}

filter {  
if [latitude] and [longitude] {  
mutate {  
add\_field =\> ["[location][lat]", "%{latitude}"]  
add\_field =\> ["[location][lon]", "%{longitude}"]  
}  
mutate {  
convert =\>{  
"[location]" =\> "float"  
}  
}  
mutate {  
convert =\>{  
"latitude" =\> "float"  
"longitude" =\> "float"  
}  
}  
}  
}

output {  
elasticsearch {  
index =\> "orders-location"  
document\_id =\> "%{location\_id}"  
document\_type =\> "orderLoc"  
hosts =\> ["[elasticsearch.host.com:9200](http://elasticsearch.host.com:9200)"]  
}  
}

Meantime modified the elasticsearch-template.json like below.

"properties" : {  
"@timestamp": { "type": "date", "doc\_values" : true },  
"@version": { "type": "string", "index": "not\_analyzed", "doc\_values" : true },  
"geoip" : {  
"type" : "object",  
"dynamic": true,  
"properties" : {  
"ip": { "type": "ip", "doc\_values" : true },  
"location" : { "type" : "geo\_point", "doc\_values" : true },  
"latitude" : { "type" : "float", "doc\_values" : true },  
"longitude" : { "type" : "float", "doc\_values" : true }  
}  
},  
"location": {  
"type": "geo\_point"  
}  
}

Still the Kibana is not getting the geo\_point type to plot it

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 13, 2016, 5:28am UTC](https://discuss.elastic.co/t/help-on-geo-point-set-up/55307/2 "2016-07-13T05:28:47Z")

</div>

Please show us

- the actual mapping of the most recent index that Logstash is inserting data into and
- an example raw message after Logstash has processed it, either via a `stdout { codec => rubydebug }` output or extracted from Elasticsearch (e.g. via Kibana's JSON tab).

---

<div class="post-metadata">

**Author:** ![Somnath\_Shantveer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/somnath_shantveer/32/10084_2.png) [@Somnath\_Shantveer](https://discuss.elastic.co/u/Somnath_Shantveer)\
**Post date:** [July 14, 2016, 6:00pm UTC](https://discuss.elastic.co/t/help-on-geo-point-set-up/55307/3 "2016-07-14T18:00:59Z")

</div>

Based on your mapping, I think this should work.  
Also as suggested by Magnus, please share your recent index.

> ```
> filter {
> if [latitude] and [longitude] {
> mutate {
> add_field => ["[geoip][location]", "%{longitude}"]
> add_field => ["[geoip][location]", "%{latitude}"]
> }
> mutate {
> add_field => { "[geoip][longitude]" => "%{longitude}" }
> add_field => { "[geoip][latitude]" => "%{latitude}" }
> }
> }
> }
> 
> ```

---

<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, 4:48am UTC](https://discuss.elastic.co/t/help-on-geo-point-set-up/55307/4 "2017-07-06T04:48:01Z")

</div>


