# Logstash help with geoip mapping from csv file

**URL:** https://discuss.elastic.co/t/logstash-help-with-geoip-mapping-from-csv-file/169229
**Category:** Logstash
**Created:** [February 20, 2019, 2:02pm UTC](https://discuss.elastic.co/t/logstash-help-with-geoip-mapping-from-csv-file/169229 "2019-02-20T14:02:46Z")
**Posts on this page:** 1
**Showing post:** 2

<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 20, 2019, 2:22pm UTC](https://discuss.elastic.co/t/logstash-help-with-geoip-mapping-from-csv-file/169229/2 "2019-02-20T14:22:15Z")

</div>

> [@mmalisa12](#):
>
> geoip{  
> source =\> "SrcAddr","DstAddr"  
> }

Try

```
geoip{ source => "SrcAddr" }

```

That will add a field called geoip which should show up in kibana as a geo\_point. Then use a second filter for the second field

```
geoip { source => "DstAddr" target => "someField" }

```

That will not be a geo\_point unless you add a mapping template. [This](https://discuss.elastic.co/t/location-dosent-convert-to-geo-point/131199/4) thread might help with that. Then you can change the target of the first filter as well 🙂

---

_[View the full topic](https://discuss.elastic.co/t/logstash-help-with-geoip-mapping-from-csv-file/169229)._
