You can anonymize IP addresses by following the steps below:
Navigate to website Settings here
Click the "Privacy Settings" tab.
In the "Anonymize User IPs" section, flip the toggle to "Yes" and click "Save".
This will anonymize all user's IP addresses by removing the last tuple. Note that IP addresses are automatically anonymized on all EU/EAA accounts (GDPR) and on visits from the State of California (CCPA).