NGINX: Obfuscate password in access_log
问题 The bounty expires in 2 days . Answers to this question are eligible for a +50 reputation bounty. Jon Mitten is looking for a canonical answer : “This is a common requirement for cloud debugging, and the regex pattern would be very valuable.” I want to log the $request_body in the access logs. But some of the requests have some JSON fields that are sensitive like passwords. Example: [2019-03-28] 201 - POST /api/user/add HTTP/1.1 - {\x22email\x22:\x22test@test.com\x22,\x22password\x22: