-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Description
Currently when the geoip processor infrastructure is started up a lot of logging is printed out to the console by default:
[2021-12-06T09:08:22,402][INFO ][o.e.i.g.GeoIpDownloader ] [runTask-0] updating geoip databases
[2021-12-06T09:08:22,403][INFO ][o.e.i.g.GeoIpDownloader ] [runTask-0] fetching geoip databases overview from [https://geoip.elastic.co/v1/database?elastic_geoip_service_tos=agree]
[2021-12-06T09:08:23,089][INFO ][o.e.i.g.GeoIpDownloader ] [runTask-0] updating geoip database [GeoLite2-ASN.mmdb]
[2021-12-06T09:08:25,044][INFO ][o.e.i.g.DatabaseNodeService] [runTask-0] downloading geoip database [GeoLite2-ASN.mmdb] to [/Users/mvg/dev/code/elasticsearch/master/build/testclusters/runTask-0/tmp/geoip-databases/vqtZxDPLTX-q6U9tDue1Vw/GeoLite2-ASN.mmdb.tmp.gz]
[2021-12-06T09:08:25,050][INFO ][o.e.i.g.GeoIpDownloader ] [runTask-0] updated geoip database [GeoLite2-ASN.mmdb]
[2021-12-06T09:08:25,074][INFO ][o.e.i.g.GeoIpDownloader ] [runTask-0] updating geoip database [GeoLite2-City.mmdb]
[2021-12-06T09:08:25,238][INFO ][o.e.i.g.DatabaseNodeService] [runTask-0] successfully reloaded changed geoip database file [/Users/mvg/dev/code/elasticsearch/master/build/testclusters/runTask-0/tmp/geoip-databases/vqtZxDPLTX-q6U9tDue1Vw/GeoLite2-ASN.mmdb]
[2021-12-06T09:08:28,805][INFO ][o.e.i.g.DatabaseNodeService] [runTask-0] downloading geoip database [GeoLite2-City.mmdb] to [/Users/mvg/dev/code/elasticsearch/master/build/testclusters/runTask-0/tmp/geoip-databases/vqtZxDPLTX-q6U9tDue1Vw/GeoLite2-City.mmdb.tmp.gz]
[2021-12-06T09:08:28,807][INFO ][o.e.i.g.GeoIpDownloader ] [runTask-0] updated geoip database [GeoLite2-City.mmdb]
[2021-12-06T09:08:28,808][INFO ][o.e.i.g.GeoIpDownloader ] [runTask-0] updating geoip database [GeoLite2-Country.mmdb]
[2021-12-06T09:08:30,307][INFO ][o.e.i.g.DatabaseNodeService] [runTask-0] downloading geoip database [GeoLite2-Country.mmdb] to [/Users/mvg/dev/code/elasticsearch/master/build/testclusters/runTask-0/tmp/geoip-databases/vqtZxDPLTX-q6U9tDue1Vw/GeoLite2-Country.mmdb.tmp.gz]
[2021-12-06T09:08:30,309][INFO ][o.e.i.g.GeoIpDownloader ] [runTask-0] updated geoip database [GeoLite2-Country.mmdb]
[2021-12-06T09:08:30,391][INFO ][o.e.i.g.DatabaseNodeService] [runTask-0] successfully reloaded changed geoip database file [/Users/mvg/dev/code/elasticsearch/master/build/testclusters/runTask-0/tmp/geoip-databases/vqtZxDPLTX-q6U9tDue1Vw/GeoLite2-Country.mmdb]
[2021-12-06T09:08:30,764][INFO ][o.e.i.g.DatabaseNodeService] [runTask-0] successfully reloaded changed geoip database file [/Users/mvg/dev/code/elasticsearch/master/build/testclusters/runTask-0/tmp/geoip-databases/vqtZxDPLTX-q6U9tDue1Vw/GeoLite2-City.mmdb]
This is too verbose and makes it more difficult to spot other important messages. Most of this logging should be turned into a debug logging and ideally geoip Infrastructure should print out 1 or 2 info messages.
Something like this:
[2021-12-06T09:08:30,309][INFO ][o.e.i.g.GeoIpDownloader ] [runTask-0] successfully downloaded geoip database files [GeoLite2-Country.mmdb,GeoLite2-City.mmdb,GeoLite2-ASN.mmdb]
[2021-12-06T09:08:30,391][INFO ][o.e.i.g.DatabaseNodeService] [runTask-0] successfully loaded geoip database files [GeoLite2-Country.mmdb, GeoLite2-City.mmdb, GeoLite2-ASN.mmdb]
The first message is whether the geoip downloader successfully downloaded the database files from the external download service into the special geoip database system index. This will only be printed on the node that performed the geoip download task.
The second message is whether an ingest node downloaded the database files from the geoip system index into a temp directory successfully, so that geoip processor can load it for geoip enrichment. This will be printed on each ingest node.