1QSGEO(1)                        qsgeo man page                        QSGEO(1)
2
3
4

NAME

6       qsgeo - an utility to lookup a client's country code.
7

SYNOPSIS

9       qsgeo -d <path> [-l] [-s] [-ip <ip>]
10

DESCRIPTION

12       Use  this  utility  to resolve the country codes of IP addresses within
13       existing log files. The utility reads the log file data from stdin  and
14       writes them, with the injected country code, to stdout.
15

OPTIONS

17       -d <path>
18              Specifies  the path to the geographical database files (CSV file
19              containing IP address ranges and country codes).
20
21       -s     Writes a summary of the requests per country only.
22
23       -l     Writes the database to stdout (ignoring stdin)  inserting  local
24              (127.*)   and   private   (10.*,   172.16*,  192.168.*)  network
25              addresses.
26
27       -ip <ip>
28              Resolves a single IP address instead of processing a log file.
29

EXAMPLE

31       Reading the file access_log and adding  the  country  code  to  the  IP
32       address field:
33
34         cat access_log | qsgeo -d GeoIPCountryWhois.csv
35
36       Reading the file access_log and showing a summary only:
37
38         cat access_log | qsgeo -d GeoIPCountryWhois.csv -s
39
40       Resolving a single IP address:
41
42         qsgeo -d GeoIPCountryWhois.csv -ip 192.84.12.23
43
44

SEE ALSO

46       qsexec(1),  qsfilter2(1),  qsgrep(1), qshead(1), qslog(1), qslogger(1),
47       qspng(1), qsrotate(1), qssign(1), qstail(1)
48

AUTHOR

50       Pascal Buchbinder, http://mod-qos.sourceforge.net/
51
52
53
54mod_qos utilities 11.55            June 2018                          QSGEO(1)
Impressum