# How to logstash geoip database file update?

**URL:** <https://discuss.elastic.co/t/how-to-logstash-geoip-database-file-update/91359>\
**Category:** Logstash\
**Created:** [June 30, 2017, 2:17am UTC](https://discuss.elastic.co/t/how-to-logstash-geoip-database-file-update/91359 "2017-06-30T02:17:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TaeSung\_Kim](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@TaeSung\_Kim](https://discuss.elastic.co/u/TaeSung_Kim)\
**Post date:** [June 30, 2017, 2:17am UTC](https://discuss.elastic.co/t/how-to-logstash-geoip-database-file-update/91359/1 "2017-06-30T02:17:21Z")

</div>

Hello, I'm TaeSung Kim.

I'm sorry. I'm not used to English.

Now, I use 5.2.2 ES, logstash, kibana.  
I find GeoLite2-City.mmdb file.

/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-filter-geoip-4.0.4-java/vendor/GeoLite2-City.mmdb

I want to update this MaxMind geo database file.  
How to update this file?

Thank you!

---

<div class="post-metadata">

**Author:** ![jsvd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsvd/32/6203_2.png) [@jsvd](https://discuss.elastic.co/u/jsvd)\
**Post date:** [June 30, 2017, 9:18am UTC](https://discuss.elastic.co/t/how-to-logstash-geoip-database-file-update/91359/2 "2017-06-30T09:18:16Z")

</div>

You can download the database yourself from the MaxMind site to a directory in the local machine, and then use the `database => filepath` option in [logstash-filter-geoip](https://www.elastic.co/guide/en/logstash/current/plugins-filters-geoip.html#plugins-filters-geoip-database) like so:

```auto
filter
   geoip {
     source => "clientip"
     database => "/opt/downloads/GeoLite2-City.mmdb"
   }
}

```

---

<div class="post-metadata">

**Author:** ![TaeSung\_Kim](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@TaeSung\_Kim](https://discuss.elastic.co/u/TaeSung_Kim)\
**Post date:** [July 5, 2017, 8:55am UTC](https://discuss.elastic.co/t/how-to-logstash-geoip-database-file-update/91359/3 "2017-07-05T08:55:11Z")

</div>

Thank you very much. 🙂

---

<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:** [August 2, 2017, 8:55am UTC](https://discuss.elastic.co/t/how-to-logstash-geoip-database-file-update/91359/4 "2017-08-02T08:55:18Z")

</div>

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