# Uploading GeoIP data into kibana from logstash

**URL:** <https://discuss.elastic.co/t/uploading-geoip-data-into-kibana-from-logstash/109621>\
**Category:** Logstash\
**Created:** [November 29, 2017, 4:09pm UTC](https://discuss.elastic.co/t/uploading-geoip-data-into-kibana-from-logstash/109621 "2017-11-29T16:09:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![I\_like\_dogs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/i_like_dogs/32/24384_2.png) [@I\_like\_dogs](https://discuss.elastic.co/u/I_like_dogs)\
**Post date:** [November 29, 2017, 4:09pm UTC](https://discuss.elastic.co/t/uploading-geoip-data-into-kibana-from-logstash/109621/1 "2017-11-29T16:09:39Z")

</div>

I uploaded some honeypot data into kibana which works but now I want to add the GeoIP.

I've created the following config file but its not working ☹

input {  
file {  
path =\> "/vagrant/headdionaea.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"

}  
}

filter {  
csv {  
separator =\> ","  
#connection\_type, connection\_protocol, protocol, srcip, srcport, dstip, dstport, hostname  
columns =\> ["timestamp","connection\_protocol","protocol","srcip","srcport","dstip","dstport","hostname"]  
}  
date{  
match =\> ["timestamp", "MM/dd/yyyy HH:mm:ss"]  
}

geoip {  
source =\> "srcip"  
target =\> "geoip"  
database =\> "/etc/logstash/GeoLiteCity.dat"  
add\_field =\> ["[geoip][coordinates]", "%{[geoip][longitude]}" ]  
add\_field =\> ["[geoip][coordinates]", "%{[geoip][latitude]}" ]  
}

mutate {  
convert =\> ["[geoip][coordinates]", "float" ]  
}  
}

output {  
elasticsearch {  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> "honeypotgeo"  
}  
stdout {}  
}

---

<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:** [November 29, 2017, 7:00pm UTC](https://discuss.elastic.co/t/uploading-geoip-data-into-kibana-from-logstash/109621/2 "2017-11-29T19:00:30Z")

</div>

> [@I\_like\_dogs](#):
>
> I've created the following config file but its not working ☹

Please explain what you mean by that.

---

<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 27, 2017, 7:00pm UTC](https://discuss.elastic.co/t/uploading-geoip-data-into-kibana-from-logstash/109621/3 "2017-12-27T19:00:32Z")

</div>

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