Project

General

Profile

[Solved] How to anonymize IP adresses in logfiles?

Added by nti over 6 years ago

DSGVO is coming over us... Is it possible to anonymize IP numbers in logfiles, like nginx can do? https://stackoverflow.com/questions/6477239/anonymize-ip-logging-in-nginx


Replies (2)

RE: How to anonymize IP adresses in logfiles? - Added by gstrauss over 6 years ago

GDPR (https://www.eugdpr.org/) goes into effect on May 25, 2018. So nice of you to ask this with 1 week until the deadline.

lighttpd supports piped loggers for both access log and error log. One solution is to use piped loggers in lighttpd, have the piped loggers look for IP addresses in each line that is logged, and then substitute anything you like before writing the line out to disk.

RE: How to anonymize IP adresses in logfiles? - Added by nti over 6 years ago

Thanks for the hint with piped loggers.
One week before the 25.5 it's to much confusion about log files - all around! So I decide to finish it for myself.

    (1-2/2)