>A reasonable reading of GDPR makes standard web server logs (which contain IP addresses) a punishable offense...
You need retention policies and if you use the web logs for (let's say) detection malicious behavior or troubleshooting, you are in the clear.