change client_body_buffer_size from 16K to 256K made the nginx logs size from 50M to 1G..

meteor8488 nginx-forum at
Wed May 11 11:26:08 UTC 2016

Thanks for your quickly response.

One more question,

for client_body_buffer_size 16K, if the $request_body >16K, it seems nginx
will put the request body into a temp file, and then no logs in log file,
even though I enabled the request log. Does that mean the best way to keep
the post log is to enable client_body_in_file_only? But the thing is enable
client_body_in_file_only will slow down nginx.

So is there any better way to achieve that?

Posted at Nginx Forum:,266793,266803#msg-266803

More information about the nginx mailing list