Note that this doesn't actually provide any useful anonymization. That feature is a placebo designed to give minimal compliance with privacy policies and pre-GDPR data protection requirements.
They're anonymized for things like logs. When the computers aren't talking to each other, the reasons to know the exact IP address are rather minimized. If you feel you have a real need to do so, then you just need to inform your users what you're doing.
Google Analytics (https://developers.google.com/analytics/devguides/collection...):
Web server (here nginx, https://stackoverflow.com/a/45405406): Only if you store more data about your customers/users you need to act further.