Welcome! Log In Create A New Profile

Advanced

Logging the response body with Nginx Lua

Posted by mrwpink 
Logging the response body with Nginx Lua
March 26, 2013 01:57PM
Hi,

I have a reverse proxy that l want to log request body with which currently looks lie

log_format my_tracking '"$request" "$http_soapaction" "$http_content_type" "$request_body"';

which is logging everything wonderfully, now I want to log the response body of these requests its turning out to be a lot harder. I have been trying to use the Lua module (which I've compiled into Nginx 1.3.14) but I can't find any examples of how to do this, I'm definitely stretching my technical ability so any assistance would be greatly received.

Thanks,
Will
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 211
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready