Hello!
On Sun, Nov 16, 2014 at 5:18 PM, Gaurav Kumar wrote:
> As you can see, I am trying to capture the complete HTTP pepose only if it
> is in the response to a POST request. When I review my log file, I am
> observing that only first ~8k bytes are getting logged.
Are you aware of the hard-coded error log message length limit in the
nginx core? The official nginx core has the limit 2048 (bytes) while
OpenResty's bundled version of nginx has the limit 4096.
Error log messages longer than the limit will be truncated. Maybe
that's what you're seeing here? Better log the string length instead
of the string contents.
Regards,
-agentzh