NGINX Logs - IP Country Match

I’m parsing NGINX Logs with Telegraf and send it to Influxdb and in the end I visualize it with Grafana. Now I’m curious if there’s a way to display the origin country of a client IP directly in Grafana and visualize it on the Map? Or just add the origin country in a table?

There’s the world map plugin but it works based on country codes and state codes, it doesn’t do the geoip lookup. If you can get your data in to country codes, it works great.

Hmm OK… it seems there’s already a ready to use solution for ELK stack. Maybe I can re-use something from there.