Anolog anonymizes access log files.
It replaces IP v4, IP v6 and query parameter values with random ones.
To keep log files as useful as possible for analysis, there are constraints for the replacements:
- All strings are consistently replaced: A string is always, in the same file, replaced by the same value, which allows for example to keep the validity of visit analysis
- A replacement is always the size of the replaced
- localhost IP aren't replaced
This is the best solution when you already have the rust toolchain.
cargo install anolog
I made them available in https://dystroy.org/anolog/download
anolog path/to/file.log > anonym.log