Re: How can I remove backslash when log format use escape=json

2019-02-20 Thread akashverma
you can try escape=none Posted at Nginx Forum: https://forum.nginx.org/read.php?2,281634,283081#msg-283081 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How can I remove backslash when log format use escape=json

2018-10-18 Thread kimown
I see, really thanks to your advice. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,281635,281642#msg-281642 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How can I remove backslash when log format use escape=json

2018-10-18 Thread Maxim Dounin
Hello! On Thu, Oct 18, 2018 at 09:29:31AM -0400, kimown wrote: > Hi, I want to log my entire request_body, but access.log contains some > strange backslash, how can I remove these backslash before doube quote? > > Here is my nginx.conf, > ``` > log_format main escape=json '$request_body'; > >

How can I remove backslash when log format use escape=json

2018-10-18 Thread kimown
Hi, I want to log my entire request_body, but access.log contains some strange backslash, how can I remove these backslash before doube quote? Here is my nginx.conf, ``` log_format main escape=json '$request_body'; access_log logs/access.log main; ``` This is my request code: ``` fetch('htt