I can use log_format
to remove the client IP from being written to the nginx access log. However, the error log always seems to include the client IP:
2018/05/18 15:43:55 [crit] 1234#1234: *1014 stat() "/var/www/initech/widgets.js" failed (13: Permission denied), client: 203.0.113.74, server: example.org, request: "GET /widgets.js HTTP/1.1", host: "example.org"
For GDPR compliance reasons I would like to stop the client IP from appearing in the error log. I know I can disable the error log entirely, but I don't want to do that. I want to fix the errors, not ignore them.