From 4eb5c68db74e81fb064290005e0edc7b5d381a3c Mon Sep 17 00:00:00 2001 From: Alexey Nizhegolenko Date: Sun, 24 Jan 2021 14:52:23 +0200 Subject: [PATCH] Fixed minor issue with the country.name tag --- geoparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geoparser.py b/geoparser.py index c32e510..abaa9cc 100755 --- a/geoparser.py +++ b/geoparser.py @@ -77,7 +77,7 @@ def logparse(LOGPATH, INFLUXHOST, INFLUXPORT, INFLUXDBDB, INFLUXUSER, INFLUXUSER GEOHASH['geohash'] = HASH GEOHASH['host'] = HOSTNAME GEOHASH['country_code'] = INFO.country.iso_code - GEOHASH['country_name'] = INFO.country.country.name + GEOHASH['country_name'] = INFO.country.name GEOHASH['city_name'] = INFO.city.name IPS['tags'] = GEOHASH IPS['fields'] = COUNT