Plesk

How to anonymize IP addresses in log files in Plesk?

Question

How to anonymize IP addresses in log files in Plesk?

Answer

To anonymize IP addresses in log files, Login to Plesk and go to Tools & Settings > Server Settings > Anonymize IPs during log rotation.

Read more about this feature in Plesk Administrator Guide.

The feature nulls up the last octet of IPv4 and the last group of IPv6 addresses during rotation of the following logs:

The anonymization works for rotated logs only. Therefore, logs of services like Fail2ban that work only with active logs are not anonymized.

Note: The CLI utility to manage IP anonymization is yet to be implemented:
https://plesk.uservoice.com/forums/184549-feature-suggestions/suggestions/43821561-manage-the-anonymize-ip-addresses-during-log-rota