#log #random #logging #anonymize

app anolog

anonymize access log files

5 releases

0.1.5 May 8, 2021
0.1.4 Apr 29, 2021
0.1.2 Apr 29, 2021
0.1.1 Apr 29, 2021
0.1.0 Apr 28, 2021

#234 in #random

MIT license

12KB
220 lines

Latest Version MIT Chat on Miaou

Features

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

⚠️ Anolog comes without any kind of garantee. If a file is converted with Anolog, it may still contain private data and may still help an attacker.

Installation:

From source

This is the best solution when you already have the rust toolchain.

cargo install anolog

From precompiled binaries

I made them available in https://dystroy.org/anolog/download

Usage:

anolog path/to/file.log > anonym.log

Dependencies

~2.4–3.5MB
~59K SLoC