| QSGEO(1) | qsgeo man page | QSGEO(1) |
qsgeo - an utility to lookup a client's country code.
qsgeo -d <path> [-l] [-s] [-ip <ip>]
Use this utility to resolve the country codes of IP addresses within existing log files. The utility reads the log file data from stdin and writes them, with the injected country code, to stdout.
Reading the file access.log and adding the country code to the IP address field:
cat access.log | qsgeo -d GeoIPCountryWhois.csv
Reading the file access.log and showing a summary only:
cat access.log | qsgeo -d GeoIPCountryWhois.csv -s
Resolving a single IP address:
qsgeo -d GeoIPCountryWhois.csv -ip 192.84.12.23
Pascal Buchbinder, http://mod-qos.sourceforge.net/
| January 2025 | mod_qos utilities 11.76 |