# How to get the geo\_point from database by using logstash

**URL:** <https://discuss.elastic.co/t/how-to-get-the-geo-point-from-database-by-using-logstash/153896>\
**Category:** Logstash\
**Created:** [October 25, 2018, 2:57am UTC](https://discuss.elastic.co/t/how-to-get-the-geo-point-from-database-by-using-logstash/153896 "2018-10-25T02:57:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![e25f05fd961f91e287cb](https://avatars.discourse-cdn.com/v4/letter/e/df788c/32.png) [@e25f05fd961f91e287cb](https://discuss.elastic.co/u/e25f05fd961f91e287cb)\
**Post date:** [October 25, 2018, 2:57am UTC](https://discuss.elastic.co/t/how-to-get-the-geo-point-from-database-by-using-logstash/153896/1 "2018-10-25T02:57:55Z")

</div>

I have the longtitude and latitude in database ,and the type is float.  
I want to use kibana to draw coordinate Map,  
how can I get the right form with the data.

```
 filter {
      mutate {
        add_field => {
          "[location][lon]" => "%{RDC_lon}"
          "[location][lat]" => "%{RDC_lat}"
        } 
      } 
      #logstash mutate {
      # convert => { "[location][lat]" => "float" }
      # convert => { "[location][lon]" => "float" }
    # }
     #mutate {
        # convert => {"location" => "geo_point"}
     #}
 }

```

in elasticsearch, the location is "%{RDC\_lon}", how can I get the true value in "RDC\_lon" which is a column in database

---

<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:** [November 22, 2018, 3:04am UTC](https://discuss.elastic.co/t/how-to-get-the-geo-point-from-database-by-using-logstash/153896/2 "2018-11-22T03:04:53Z")

</div>

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