-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Names of Japan Prefectures are inconsistent with GeoLite2 subdivision names #20971
Comments
cc: @thomasneirynck |
thanks for filing @kosho, we'll look into this! |
Thanks for checking on this. I agree we need to look into this more. Names are difficult to use as a join field because they can differ in different data sources. I opened a PR on elasticsearch to add ISO 3166-2 codes to the geoip ingest plugin. This isn't an immediate solution but it would give us a standard code that we can join data to in future releases. |
@alexfrancoeur @nickpeihl Thanks for your prompt response. A script field like |
As a final note to this, we strongly discourage using region names as a join field. The solution above to use a scripted field with the country and region codes works for the Logstash GeoIP plugin. This blog post has a little more information. Starting with v6.5, the Ingest GeoIP plugin will add a new |
Kibana version: 6.3.0
Elasticsearch version: 6.3.0
Describe the bug:
People often use GeoLite2 dataset to convert IP addresses to geological locations through Elasticsearch's geoip igest node processor and geoip filter of Logstash, however subdivision names GeoLite2 returns for prefectures in Japan are different from Elastic Maps Service. As a cause, Region Map visualization of Kibana is not able to paint regions properly.
I've extracted below prefecture names from here.
It seems GeoLite2 database doesn't follow any rule. It doesn't comply with ISO-3166 subdivision names. It also give
-ken
which meansprefecture
for Fukushima as the other prefectures don't have it.Since Japanese words are flexible when using alphabets,
Kyoto
could beKyōto
. Using the ISO subdivision code to map prefectures is considerable. In that case, it must be fixed by Elasticsearch and Logstash while MaxMind describes such method hereSteps to reproduce:
Create an index-pattern
Create a new Region Map from Visualize tab. The message on below the screenshot appears.
Note: Elastic Maps Service expects
Hokkaidō Prefecture
instead ofHokkaido
.Expected behavior:
Region Map to properly paint the map while prefecture names are supplied from GeoLite2 dataset.
Screenshots (if relevant):
Tag: @alexfrancoeur @nickpeihl
The text was updated successfully, but these errors were encountered: