ipv6logstats(8)
π ipv6logstats(8) π
okay bestie, sit down, hydrate, and let me tell you about ipv6logstats β it's a lil system tool (that's the section it lives in, 8, iykyk) and honestly? it ate. π
β¨ Name β¨
ipv6logstats β takes http log data from stdin and prints a statistics table on output. that's the whole job. it does it flawlessly. periodt. π
πΈ SYNOPSIS πΈ
cat /var/log/httpd/access_log | ipv6logstats [OPTIONS]
like... pipe your log into it. that's the vibe. π¦
π SYNTAX π
ipv6logstats [logfile]
π DESCRIPTION π
So here's the tea β: ipv6logstats slurps web server log data β or literally any other data that has an IPv4/v6 address sitting in the first column β from stdin, and then prints a statistics table or a list (depends on which option you picked, no cap) out to stdout. π«Ά
β¨ OPTIONS β¨
π General options:
-d,--debug DEBUGVALUEβ debug value (bitwise like), and bestie you can also set it with theIPV6CALC_DEBUGenvironment value π-v,--version [-v [-v]]β version information, with 2 optional detail levels if you're feeling extra-v,--version -hβ explanation of feature tokens π§-V,--verboseβ be more verbose, give me more words-h,--help,-?β this online help-q,--quietβ be more quiet π€«
π¦ External database options (depending on compiled-in suppport):
heads up: these only exist if the matching support got compiled in!
--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 tostderrπ-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)
okay so that lil "(1)" is doing WORK: it means unsupported for CountryCode & ASN statistics. remember that. it matters. π
π₯ 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) β go read that one too bestie, they're a matched set π«
π REPORTING BUGS π
Found a bug? don't suffer in silence, report it via GitHub:
https://github.com/pbiering/ipv6calc/issues
Homepage: http://www.deepspace6.net/projects/ipv6calc.html
πΈ COPYRIGHT πΈ
GPLv2
π AUTHORS π
Peter Bieringer <pb@bieringer.de>
and that's the whole page, bestie π this was ipv6logstats(8), version 3.4.0, brought to you by the one and only Peter Bieringer <pb@bieringer.de> β stan a maintainer who ships. mwah π
π¦ where this page comes from
- arch rolling: ipv6calc 4.4.1-1 Β· GPL-2.0-only
- epel 10: ipv6calc 4.4.1-1.el10_3 Β· GPL-2.0-only
- epel 9: ipv6calc 4.4.1-1.el9 Β· GPL-2.0-only
- fedora 43: ipv6calc 4.4.0-1.fc43 Β· GPL-2.0-only
- fedora 43: ipv6calc 4.4.0-1.fc43 Β· GPL-2.0-only
- fedora 43: ipv6calc 4.4.1-1.fc43 Β· GPL-2.0-only
- fedora 43: ipv6calc 4.4.1-1.fc43 Β· GPL-2.0-only
- fedora 44: ipv6calc 4.4.0-2.fc44 Β· GPL-2.0-only
- fedora 44: ipv6calc 4.4.0-2.fc44 Β· GPL-2.0-only
- fedora 44: ipv6calc 4.4.1-1.fc44 Β· GPL-2.0-only
- fedora 44: ipv6calc 4.4.1-1.fc44 Β· GPL-2.0-only
- nixos 26.05: ipv6calc 4.4.0
- nixpkgs unstable: ipv6calc 4.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms