disable extended geoip logging

This commit is contained in:
nd 2021-12-02 20:58:54 +01:00
parent eb2e8df0ae
commit 97bb7a433f
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
3 changed files with 8 additions and 8 deletions

View file

@ -1,3 +1,3 @@
geoip_country /usr/share/GeoIP/GeoIPv6.dat; geoip_country /usr/share/GeoIP/GeoIPv6.dat;
geoip_city /usr/share/GeoIP/GeoIPCity.dat; #geoip_city /usr/share/GeoIP/GeoIPCity.dat;
geoip_org /usr/share/GeoIP/GeoIPASNum.dat; #geoip_org /usr/share/GeoIP/GeoIPASNum.dat;

View file

@ -38,11 +38,12 @@ log_format promtail_analytics escape=json '{'
'"gzip_ratio": "$gzip_ratio", ' '"gzip_ratio": "$gzip_ratio", '
'"http_cf_ray": "$http_cf_ray",' '"http_cf_ray": "$http_cf_ray",'
'"geoip_country_code": "$geoip_country_code",' '"geoip_country_code": "$geoip_country_code",'
'"geoip_region": "$geoip_region",' '"geoip_region": "$geoip_region"'
'"geoip_city": "$geoip_city",' # disabled for now since debian bullseye doesn't ship the needed geoip database
'"geoip_org": "$geoip_org",' # '"geoip_city": "$geoip_city",'
'"geoip_latitude": "$geoip_latitude",' # '"geoip_org": "$geoip_org",'
'"geoip_longitude": "$geoip_longitude"' # '"geoip_latitude": "$geoip_latitude",'
# '"geoip_longitude": "$geoip_longitude"'
'}'; '}';

View file

@ -26,7 +26,6 @@
- libnginx-mod-http-geoip - libnginx-mod-http-geoip
- goaccess - goaccess
- geoip-database - geoip-database
- geoip-database-extra
notify: notify:
- delete nginx index.nginx-debian.html - delete nginx index.nginx-debian.html
- restart nginx - restart nginx