ipv6logstats(8)

Name
ipv6logstats - Takes http log data from stdin and print a statistics table on output

SYNOPSIS
cat /var/log/httpd/access_log | ipv6logstats [OPTIONS]

SYNTAX
ipv6logstats [logfile]

DESCRIPTION
Takes web server log data (or any other data which has IPv4/v6 address in first column) from stdin and print statistics table/list (depending on option) to stdout

OPTIONS

General options:

[-d|--debug DEBUGVALUE]
    debug value (bitwise like) can also be set by IPV6CALC_DEBUG environment value

[-v|--version [-v [-v]]]
    version information (2 optional detail levels)

[-v|--version -h]
    explanation of feature tokens

[-V|--verbose]
    be more verbose

[-h|--help|-?]
    this online help

[-q|--quiet]
    be more quiet

External database options (depending on compiled-in suppport):

[--db-ip2location-disable]
    IP2Location support disabled

[--db-ip2location-dir DIRECTORY]
    IP2Location database directory (default: /usr/share/IP2Location)

[--db-ip2location2-disable]
    IP2Location(MMDB) support disabled

[--db-ip2location2-dir DIRECTORY]
    IP2Location(MMDB) database directory (default: /usr/share/IP2Location)

[--db-geoip2-disable]
    GeoIP(MMDB) support disabled

[--db-geoip2-dir DIRECTORY]
    GeoIP(MMDB) database directory (default: /usr/share/GeoIP)

[--db-dbip2-disable]
    db-ip.com(MMDB) support disabled

[--db-dbip2-dir DIRECTORY]
    db-ip.com(MMDB) database directory (default: /usr/share/DBIP)

Special options:

[-u|--unknown]
    print unknown IP addresses to stderr

[-c|--columns]
    print statistics in columns (1)

[-N|--column-numbers]
    print column numbers

[-n|--noheader]
    don't print header in columns mode (1)

[-o|--onlyheader]
    print only header in columns mode (1)

[-p|--prefix TOKEN]
    print token as prefix (1)

[-s|--simple]
    disable extended statistic (CountryCode/ASN)
     (1) unsupported for CountryCode & ASN statistics

EXAMPLES

Column mode:

echo "2001:a60:1400:1201:221:70ff:fe01:2345" | ./ipv6logstats -c -q
ALL IPv4 IPv6 UNKNOWN IPv4/APNIC IPv4/ARIN IPv4/RIPE IPv4/LACNIC IPv4/AFRINIC IPv4/UNKNOWN IPv6/6bone IPv6/IANA IPv6/APNIC IPv6/ARIN IPv6/RIPE IPv6/LACNIC IPv6/AFRINIC IPv6/RESERVED IPv6/UNKNOWN IPv6/6to4/IANA IPv6/6to4/APNIC IPv6/6to4/ARIN IPv6/6to4/RIPE IPv6/6to4/LACNIC IPv6/6to4/AFRINIC IPv6/6to4/RESERVED IPv6/6to4/UNKNOWN IPv6/Teredo/IANA IPv6/Teredo/APNIC IPv6/Teredo/ARIN IPv6/Teredo/RIPE IPv6/Teredo/LACNIC IPv6/Teredo/AFRINIC IPv6/Teredo/RESERVED IPv6/Teredo/UNKNOWN IPv6/NAT64/IANA IPv6/NAT64/APNIC IPv6/NAT64/ARIN IPv6/NAT64/RIPE IPv6/NAT64/LACNIC IPv6/NAT64/AFRINIC IPv6/NAT64/RESERVED IPv6/NAT64/UNKNOWN IPv6/IID/Global IPv6/IID/Random IPv6/IID/Manual IPv6/IID/ISATAP IPv6/IID/Unknown #Version(4.0)

1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 #4.0

Row mode:
echo "2001:a60:1400:1201:221:70ff:fe01:2345" | ./ipv6logstats -q
*Version             4.0
*DateTime: 2014:07:23 19:59:56+0000 GMT
*UnixTime: 1406145596
ALL                  1
IPv4                 0
IPv6                 1
IPv6/RIPE            1
IPv6/IID/Global      1
*3*CC-code-proto/DE/ALL   1
*3*CC-code-proto/DE/IPv4  0
*3*CC-code-proto/DE/IPv6  1
*3*CC-code-proto-list/DE  1 0 1
*3*CC-proto-code/ALL/DE   1
*3*CC-proto-code/IPv6/DE  1
*3*CC-proto-code-list/ALL  1 0 1
*3*AS-num-proto/8767/ALL   1
*3*AS-num-proto/8767/IPv4  0
*3*AS-num-proto/8767/IPv6  1
*3*AS-num-proto-list/8767  1 0 1
*3*AS-proto-num/ALL/8767   1
*3*AS-proto-num/IPv6/8767  1
*3*AS-proto-num-list/ALL  1 0 1

SEE ALSO
ipv6calc(8)

REPORTING BUGS
Report bugs via GitHub:
 https://github.com/pbiering/ipv6calc/issues (https://github.com/pbiering/ipv6calc/issues)

Homepage: http://www.deepspace6.net/projects/ipv6calc.html (http://www.deepspace6.net/projects/ipv6calc.html)

COPYRIGHT
GPLv2

AUTHORS
Peter Bieringer <pb@bieringer.de>