<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">А запрос то какой поступает?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-11-16 15:24 GMT+02:00 Eugene Klimov <span dir="ltr"><<a href="mailto:bloodjazman@gmail.com" target="_blank">bloodjazman@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Всем привет, скажите пожалуйста, а какие есть ограничения на запись в<br>
лог request_body кроме тех кто написаны вот тут?<br>
<a href="http://nginx.org/ru/docs/http/ngx_http_core_module.html#var_request_body" rel="noreferrer" target="_blank">http://nginx.org/ru/docs/http/<wbr>ngx_http_core_module.html#var_<wbr>request_body</a><br>
<br>
# nginx -v<br>
nginx version: nginx/1.12.0<br>
<br>
у меня вот есть такой конфиг (не мое. в наследство достался)<br>
<br>
<br>
log_format format_json escape=json<br>
'{"remote_addr":"$remote_addr"<wbr>,"remote_user":"$remote_user",<wbr>"time_local":"$time_iso8601","<wbr>msec":<br>
$msec,"request":"$request","<wbr>request_uri":"$request_uri","<wbr>status":"$status","body_bytes_<wbr>sent":"$body_bytes_sent",<br>
"referer":"$http_referer","<wbr>user_agent":"$http_user_agent"<wbr>,<br>
"req_time":$request_time,"uid_<wbr>got":"$uid_got","uid_set":"$<wbr>uid_set",<br>
"apic":"$cookie_spjsapicall","<wbr>sndraw":"$cookie_spsenderaway"<wbr>,"upstream_time":<br>
$upstream_response_time, "request_body": "$request_body",<br>
"content_length":"$content_<wbr>length","request_body_file":"$<wbr>request_body_file","upstream_<wbr>addr":"$upstream_addr","ssl_<wbr>protocol":"$ssl_protocol"}';<br>
<br>
server {<br>
  listen 80;<br>
  server_name <a href="http://xxx.ru" rel="noreferrer" target="_blank">xxx.ru</a>;<br>
<br>
      location ~ ^/integration/xxx/ {<br>
               proxy_pass<br>
<a href="http://mybackend_integrations_xxx" rel="noreferrer" target="_blank">http://mybackend_integrations_<wbr>xxx</a>;<br>
               proxy_set_header        Host    $host;<br>
               proxy_http_version      1.1;<br>
               proxy_connect_timeout       600;<br>
               proxy_send_timeout          600;<br>
               proxy_read_timeout          600;<br>
               send_timeout                600;<br>
<br>
               access_log /home/nginx/log/xxx-<wbr>integration-json.log format_json;<br>
               client_max_body_size    30m;<br>
               client_body_buffer_size 1m;<br>
               client_body_in_file_only off;<br>
               client_body_in_single_buffer on;<br>
       }<br>
<br>
}<br>
<br>
почему в логе у меня пишется вот такое?<br>
<br>
"request_body":<br>
"","content_length":"105715","<wbr>request_body_file":"/var/<wbr>cache/nginx/client_temp/<wbr>0006557331","upstream_addr":"<a href="http://10.216.130.28:80" rel="noreferrer" target="_blank">1<wbr>0.216.130.28:80</a>","ssl_<wbr>protocol":""}<br>
<br>
<br>
выглядит так будто директивы client_body_* для моего location просто<br>
не срабатывают и все все равно пишется в tmp файл?<br>
что еще я забыл?<br>
______________________________<wbr>_________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx-ru</a></blockquote></div><br></div>