# No geopoint for destination.ip but latitude and longitude field - 7.10

**URL:** <https://discuss.elastic.co/t/no-geopoint-for-destination-ip-but-latitude-and-longitude-field-7-10/256905>\
**Category:** Logstash\
**Created:** [November 27, 2020, 4:26pm UTC](https://discuss.elastic.co/t/no-geopoint-for-destination-ip-but-latitude-and-longitude-field-7-10/256905 "2020-11-27T16:26:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Camille](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@Camille](https://discuss.elastic.co/u/Camille)\
**Post date:** [November 27, 2020, 4:26pm UTC](https://discuss.elastic.co/t/no-geopoint-for-destination-ip-but-latitude-and-longitude-field-7-10/256905/1 "2020-11-27T16:26:02Z")

</div>

Hi,

i'm trying to use "geoip" module on a destination.ip.

My logstash code is :

```auto
    if [destination.ip] {
          geoip {
            source => "destination.ip"
            target => "destination.geo"
          }
    }

```

Geoip is working (almost fine), I have new fields in the Elastic output but no geopoint. I can see "destination.geo.location.lat" and "destination.geo.location.lon" as number field but no "destination.geo.location" whereas it is defined in my index template (see image)

 ![template](https://us1.discourse-cdn.com/elastic/original/3X/5/8/58fc81d2eb077dab1b1fde29ed0461aeb181e00a.png)

Am I missing something ?

Thanks for help

---

<div class="post-metadata">

**Author:** ![PraveenKT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/praveenkt/32/35483_2.png) [@PraveenKT](https://discuss.elastic.co/u/PraveenKT)\
**Post date:** [November 27, 2020, 4:38pm UTC](https://discuss.elastic.co/t/no-geopoint-for-destination-ip-but-latitude-and-longitude-field-7-10/256905/2 "2020-11-27T16:38:39Z")

</div>

try to add below section to logstash conf.d file.

```auto
filter {
geoip {
   source => "[destination][ip]"
   target => "[destination][geo]"}
geoip {
   source => "[source][ip]"
   target => "[source][geo]"
    }
}
~~~~~~~~~~~~~~~~
```

---

<div class="post-metadata">

**Author:** ![Camille](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@Camille](https://discuss.elastic.co/u/Camille)\
**Post date:** [November 30, 2020, 3:19pm UTC](https://discuss.elastic.co/t/no-geopoint-for-destination-ip-but-latitude-and-longitude-field-7-10/256905/3 "2020-11-30T15:19:01Z")

</div>

Thanks for your reply, I'm trying it and waiting for new alarms.

---

<div class="post-metadata">

**Author:** ![Camille](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@Camille](https://discuss.elastic.co/u/Camille)\
**Post date:** [December 1, 2020, 3:23pm UTC](https://discuss.elastic.co/t/no-geopoint-for-destination-ip-but-latitude-and-longitude-field-7-10/256905/4 "2020-12-01T15:23:53Z")

</div>

Hi,

Issue is solved, it was due to the source field type (ip instead of string as expected by geoip).

---

<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:** [December 29, 2020, 3:24pm UTC](https://discuss.elastic.co/t/no-geopoint-for-destination-ip-but-latitude-and-longitude-field-7-10/256905/5 "2020-12-29T15:24:02Z")

</div>

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