Closed sneumann closed 3 years ago
Hi, I suggest to use the German implementation: https://blog.bartlweb.net/2018/02/ip-adressen-in-access-und-error-logs-des-apache-webserver-anonymisieren/
However, IMHO, Tomcat
is logging only internal calls and no external.
I solved it now straight forward with the original anonin solution. I don't see a requirement to store full IPs. Apache deletes old logs after 14 days anyway. We are pretty much within GDPR.
https://www.privacyfoundation.ch/de/service/anonip.html
Can be embedded into logrotate configuration as follows, but needs adapting to tomcat. Will do weekly rotation, and anonymise logs older than one week.