# GEO Mapping and IPV6 addresses

**URL:** https://discuss.elastic.co/t/geo-mapping-and-ipv6-addresses/174875
**Category:** Logstash
**Created:** [April 1, 2019, 9:08pm UTC](https://discuss.elastic.co/t/geo-mapping-and-ipv6-addresses/174875 "2019-04-01T21:08:39Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![fhansen](https://avatars.discourse-cdn.com/v4/letter/f/e0b2c6/32.png) [@fhansen](https://discuss.elastic.co/u/fhansen)
#### Post date: [April 1, 2019, 9:08pm UTC](https://discuss.elastic.co/t/geo-mapping-and-ipv6-addresses/174875/1 "2019-04-01T21:08:39Z")

</div>

I'm struggling with getting IPV6 addresses to correctly show up in the GEO mapping. I've created the following configuration for Logstash:  
input {

```
snmp {

walk =&gt; ["1.3.6.1.2.1.31.1.1.1"]

hosts =&gt; [{host =&gt; "udp:172.20.64.62/161" community =&gt; "public"}, {host =&gt; "udp:fda1:40:0:b:1c:6404:8061:7ccb/161" community =&gt; "Public"}, {host =&gt; "udp:fda1:40:0:b::8077:786/161" community =&gt; "Public"}]

}

}

filter {

mutate {

rename =&gt; ["host", "clientip"]

}

geoip {

source =&gt; "clientip"

database =&gt; "/home/kswaminathan/GeoLite2-City_20190402/GeoLite2-City.mmdb"

}

}

output {

elasticsearch {

hosts =&gt; ["localhost:9200"]

index =&gt; "logstash"
}

}

```

I see the \_geoip\_lookup failure on the records that have a valid IPV6 address...I've even added a geo type to the template. I do not see any examples of IPV6 configuration related to GEO mapping. Any help would be greatly appreciated.

Thanks  
Frank

---

<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: [April 1, 2019, 9:28pm UTC](https://discuss.elastic.co/t/geo-mapping-and-ipv6-addresses/174875/2 "2019-04-01T21:28:00Z")

</div>

Have you tried the inbuilt database? It supports IPv6 if you are using a new version of Logstash.

---

<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: [April 1, 2019, 9:30pm UTC](https://discuss.elastic.co/t/geo-mapping-and-ipv6-addresses/174875/3 "2019-04-01T21:30:51Z")

</div>

What version of the plugin do you have

```
bin/logstash-plugin list --verbose geoip

```

V6 addresses work for me...

```
input { generator { count => 1 message => '' } }
filter {
    mutate { add_field => { "clientip" => "2001:0:3238:DFE1:0063::FEFB" } }
    geoip { source => "clientip" }
}

```

gets me a location in San Antonio, TX

---

<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: [April 29, 2019, 9:30pm UTC](https://discuss.elastic.co/t/geo-mapping-and-ipv6-addresses/174875/4 "2019-04-29T21:30:58Z")

</div>

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

---

<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: [April 29, 2019, 9:30pm UTC](https://discuss.elastic.co/t/geo-mapping-and-ipv6-addresses/174875/5 "2019-04-29T21:30:58Z")

</div>



---

<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 4, 2022, 7:01am UTC](https://discuss.elastic.co/t/geo-mapping-and-ipv6-addresses/174875/6 "2022-11-04T07:01:49Z")

</div>


