Graylog2 / graylog-plugin-map-widget

[DEPRECATED] Map widget for Graylog
https://www.graylog.org/
GNU General Public License v3.0
6 stars 11 forks source link

Enrich messages with country code and city name #28

Closed edmundoa closed 7 years ago

edmundoa commented 7 years ago

As #15 is stalled for a while now, I took some time to work on #10 and get this done.

The changes here add the ISO country code (<fieldname>_country_code) and the city name (<fieldname>_city_name) to those fields that include an IP address with geo-location information. If, for some reason, the country or city information is not available, it will add N/A as value for the fields, being able to identify IPs without country or city information easily if using quick values.