Hello!
On Thu, Aug 21, 2014 at 11:40 PM, luojiaoscu wrote:
>
> how about the response body? is there any module can accomplish this task?
Response bodies can be huge. So logging such things can be very
expensive. Are you sure you want to do this?
Technically speaking, you could use body_filter_by_lua [1] to write
response data chunks to your own files without the overhead of
buffering all the response body data in memory. But still, this is
rather expensive due to the potentially large amount of data.
BTW, please subscribe to this list before posting. See
http://openresty.org/#Community
Regards,
-agentzh
[1] https://github.com/openresty/lua-nginx-module#body_filter_by_lua