# How to improve the accurate of GeoIP

**URL:** <https://discuss.elastic.co/t/how-to-improve-the-accurate-of-geoip/93501>\
**Category:** Logstash\
**Created:** [July 18, 2017, 6:17am UTC](https://discuss.elastic.co/t/how-to-improve-the-accurate-of-geoip/93501 "2017-07-18T06:17:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mercymx](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mercymx](https://discuss.elastic.co/u/mercymx)\
**Post date:** [July 18, 2017, 6:17am UTC](https://discuss.elastic.co/t/how-to-improve-the-accurate-of-geoip/93501/1 "2017-07-18T06:17:40Z")

</div>

Hi there,

I'm using GeoIP filter to add geographical information with the Maxmind GeoLite2 databases.  
However, I found this database has lots of mistake, the location is wrong for the IP from China in most of time.  
So could I create a custom GeoIP database?  
Or, is there any other methor to improve the accurate of GeoIP?

I'm using Logstash 5.3.1 now

Many Thanks!!!

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [July 21, 2017, 3:10pm UTC](https://discuss.elastic.co/t/how-to-improve-the-accurate-of-geoip/93501/2 "2017-07-21T15:10:49Z")

</div>

The best thing to do is to download the latest version of the Maxmind databases. The versions we ship are by definition a little out of date.

Outside of that , I don't have much advice. IP geolocation is by its nature imprecise, and I don't know of better products.

---

<div class="post-metadata">

**Author:** ![mercymx](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mercymx](https://discuss.elastic.co/u/mercymx)\
**Post date:** [July 24, 2017, 7:56am UTC](https://discuss.elastic.co/t/how-to-improve-the-accurate-of-geoip/93501/3 "2017-07-24T07:56:01Z")

</div>

I’m using the latest version, but there are too many mistakes.

Now I'm trying to correct the GeoIP's result by a script. I still working on it 😭

---

<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 21, 2017, 7:56am UTC](https://discuss.elastic.co/t/how-to-improve-the-accurate-of-geoip/93501/4 "2017-08-21T07:56:58Z")

</div>

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