Scroll to navigation

ANONIP(1) User Commands ANONIP(1)

NAME

anonip - manual page for anonip 1.1.0

DESCRIPTION

usage: anonip [-h] [-4 INTEGER] [-6 INTEGER] [-i INTEGER] [-o FILE]

[--input FILE] [-c INTEGER [INTEGER ...]] [-l STRING] [--regex STRING [STRING ...]] [-r STRING] [-p] [-d] [-v]

Anonip is a tool to anonymize IP-addresses in log files.

options:

show this help message and exit
-4 INTEGER, --ipv4mask INTEGER
truncate the last n bits (default: 12)
-6 INTEGER, --ipv6mask INTEGER
truncate the last n bits (default: 84)
increment the IP address by n (default: 0)
file to write to
File or FIFO to read from (default: stdin)
assume IP address is in column n (1-based indexed; default: 1)
log delimiter (default: " ")
regex for detecting IP addresses (use optionally instead of -c)
replacement string in case address parsing fails (Example: 0.0.0.0)
do not mask addresses in private ranges. See IANA Special-Purpose Address Registry.
print debug messages
show program's version number and exit

Example-usage in apache-config: CustomLog "| /usr/bin/anonip [OPTIONS] --output ${APACHE_LOG_DIR}/access.log" combined

August 2022 anonip 1.1.0