#web-server #log #anonymization #gdpr

app ApacheLogAnonymizer

Anonymizes web server logs for long term storage in compliance with the GDPR

2 releases

0.1.1 Sep 22, 2020
0.1.0 Sep 22, 2020

#5 in #anonymization

48 downloads per month

EUPL-1.2

10KB
104 lines

ApacheLogAnonymizer

A small Rust programm to anonymize webserver logs.

ApacheLogAnonymizer is intended to remove personal data from webserver log files in order to store them in compliance with the GDPR (german: DSGVO).

  • ApacheLogAnonymizer uses regular expressions to search for IPv4 addresses, IPv6 addresses and URLs wit GET parameters.
  • IP addresses are anonymized by tuncating the second half of all addresses.
  • GET parameters are removed and replaced with XXXXX to indicate the removal.

ApacheLogAnonymizer was only tested with apache2 access.log and error.log samples.


This program was written to the best of knowledge and ability but neither functionality nor correctness can be guaranteed.

Dependencies

~2.5MB
~57K SLoC