to include an anonymize option for the apache/nginx logs!
In Europe - especially in Germany there are several laws to enforce privacy for the visitors of a website - I am talking about data protection legislation.
Up to now there is no option in Plesk for anonymizing access- and errorlogs. All solutions given on the internet are intermediate stopgap solutions that do not work well...because Plesk will overwrite the config- or template-files which have to be modified to make the anonymization work....
Please integrate an option for logfile anonymization!!!
Kind regards
Christian
The feature was implemented in the following products:
Plesk Onyx 17.8.11 MU#8 (Linux)
Plesk Onyx 17.5.3 MU#48 (Linux)
and can be enabled in Plesk > Tools & Settings > Server Settings > Anonimyze IPs during log rotation.
—
IG
-
Florian commented
any update?
-
Christian commented
In my opinion there are two possible solutions:
1)
Anonymizing the ip of a log entry while it is written; a kind of "pipe"-solution:
Bevor the entry is written it is piped through a kind of anonymizer
and the anonymizer writes the log entry with an anonymized ip.
This is a solution commonly working with apache, but not with nginx.
For nginx there is a solution based on map-directives on the internet...
(This solution might cause performance issues - I know...)2)
Another viable solution might be to anonymize the log that is moved aside during log rotation. A big advantage of this approach is that the user has nearly full control of how long the ip addresses are kept non-anonymized: for a day, a week etc. (depending on log rotation setting).
Giving more complex configuration options for the log rotation can be a solution for this problem:
If it would be possible to specify a pre-rotate script the administrator could integrate an anonymization script by him-/herself...This solution will come without performance issues...
Another anonymization option would be fine: How many bytes should be blanked...