# Visualizing maps on Kibana in logstash originated data, when I already HAVE the geo information

**URL:** https://discuss.elastic.co/t/visualizing-maps-on-kibana-in-logstash-originated-data-when-i-already-have-the-geo-information/220677
**Category:** Logstash
**Created:** [February 24, 2020, 2:36pm UTC](https://discuss.elastic.co/t/visualizing-maps-on-kibana-in-logstash-originated-data-when-i-already-have-the-geo-information/220677 "2020-02-24T14:36:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![GenXJason](https://avatars.discourse-cdn.com/v4/letter/g/e95f7d/32.png) [@GenXJason](https://discuss.elastic.co/u/GenXJason)
#### Post date: [February 24, 2020, 2:36pm UTC](https://discuss.elastic.co/t/visualizing-maps-on-kibana-in-logstash-originated-data-when-i-already-have-the-geo-information/220677/1 "2020-02-24T14:36:20Z")

</div>

Hey there, I have a Django implementation that logs into Logstash. I already send the geographical information to `logstash`. I do _not_ need it to convert IP addresses to geo-information. Here's a sample of what I send (this output is from Logstash running locally on my machine)

```auto
{
       "program" => "manage.py",
      "@version" => "1",
          "port" => 65242,
         "level" => "INFO",
    "@timestamp" => 2020-02-23T23:34:25.068Z,
     "logsource" => "MyLocalMachine.local",
          "type" => "python-logstash",
          "host" => "MyLocalMachine.local",
          "my_app" => {
                        "geo_lat" => "Decimal('40.957900')",
                "geo_postal_code" => "07410",
                     "created_at" => "2020-02-20T20:41:25.000Z",
            "interpreter_version" => "3.6.5",
                           "line" => 50,
                        "version" => "2.0.202",
        "geo_state_province_code" => "NJ",
               "geo_country_code" => "US",
                   "process_name" => "MainProcess",
               "geo_country_name" => "United States",
                    "logger_name" => "my_app-user-activity-log",
         "logstash_async_version" => "1.6.4",
                 "geo_place_name" => "Hawthorne",
                   "geo_timezone" => "America/New_York",
                      "func_name" => "handle",
                         "domain" => "like",
                       "geo_long" => "Decimal('-74.158100')",
                    "thread_name" => "MainThread",
                         "action" => "unliked-a-video-post",
                     "element_id" => "2359c8c7-6af9-4237-a733-96bd450fbb77",
        "geo_state_province_name" => "New Jersey",
                    "interpreter" => "/Users/me/dev/myproj/test/venv/bin/python",
                    "environment" => "development"
    },
           "pid" => 20585,
       "message" => ""
}

```

I can't figure out a way to convert my long/lat into whatever datatypes `Elasticsearch` needs to be able to use the visualization of the map in `Kibana` . The only information I can find online is converting IP to GEO, which isn't what I need. Isn't there a way to visualize maps in `Kibana` where I already have the geo-information (lat/long/country-code,state etc)?

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [February 24, 2020, 4:36pm UTC](https://discuss.elastic.co/t/visualizing-maps-on-kibana-in-logstash-originated-data-when-i-already-have-the-geo-information/220677/2 "2020-02-24T16:36:23Z")

</div>

You will need an [index template](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html) that tells elasticsearch that some field is a geo\_point and then add documents with the latitude and longitude in an appropriate format.

---

<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 23, 2020, 4:36pm UTC](https://discuss.elastic.co/t/visualizing-maps-on-kibana-in-logstash-originated-data-when-i-already-have-the-geo-information/220677/3 "2020-03-23T16:36:29Z")

</div>

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