Anonymized IPs in nginx Access Log

If you want to reduce your nginx logs to non-personalized resp. anonymized client addresses, you may apply the following method, running a slightly changed log format after setting a new variable $remote_addr_anon.