# Logstash and GeoIPASN

**URL:** <https://discuss.elastic.co/t/logstash-and-geoipasn/33726>\
**Category:** Logstash\
**Created:** [November 4, 2015, 10:37am UTC](https://discuss.elastic.co/t/logstash-and-geoipasn/33726 "2015-11-04T10:37:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sampasei](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@sampasei](https://discuss.elastic.co/u/sampasei)\
**Post date:** [November 4, 2015, 10:37am UTC](https://discuss.elastic.co/t/logstash-and-geoipasn/33726/1 "2015-11-04T10:37:53Z")

</div>

Hi all,  
i have a question about logstash and GeoIPASN.  
I'm using GeoIPASNum.dat and works well: i'm using the snipped code below

```
        geoip {
            source => "id_orig_h"
            target => "geoIPASN"
            database => "/opt/logstash/vendor/geoip/GeoIPASNum.dat"
        }

```

I've seen in the database that the starting and ending ip associated to an owner are also present: how can i extract these data?  
Thanks

---

<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, 5:24am UTC](https://discuss.elastic.co/t/logstash-and-geoipasn/33726/2 "2017-07-06T05:24:07Z")

</div>


