How to anonymize IP addresses in log files in Plesk?
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: