Articles in this section

How to anonymize IP addresses in log files in Plesk?

kb: bug DoNotDelete:docref kb: fixed Plesk for Linux ABT: Group A

Applicable to:

  • Plesk for Linux

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:

  • /var/log/httpd/*
  • /var/log/nginx/*
  • /var/log/maillog
  • /var/www/vhosts/*/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. 

To suggest it for future Plesk updates, submit a feature request here: https://features.plesk.com/

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.