QSGEO
Section: qsgeo man page (1)
Updated: June 2012
Index
Return to Main Contents
NAME
qsgeo - lookup of the client's country code.
SYNOPSIS
qsgeo -d <path> [-s] [-ip <ip>]
DESCRIPTION
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.
OPTIONS
- -d <path>
-
Specifies the path to the geographical database files (CSV file containing IP address ranges and country codes.
- -s
-
Writes a summary of the requests per country only.
- -ip <ip>
-
Resolves a single IP address instead of processing a log file.
EXAMPLE
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
SEE ALSO
qsexec(1), qsfilter2(1), qsgrep(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1)
AUTHOR
Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- OPTIONS
-
- EXAMPLE
-
- SEE ALSO
-
- AUTHOR
-