ipv6logstats(8)

πŸ“¦
version 4.4.1 Β· 3 versions
, in arch rolling, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’– 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 the IPV6CALC_DEBUG environment 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 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)
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


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 πŸ’‹