Welcome! Log In Create A New Profile

Advanced

Log POST data to file for debugging

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 5.7 KB open | download Dave Barton 08/10/2010 Read message
Dave Barton
August 10, 2010 06:44AM
Hi,

We have an issue with some software in the field which makes requests
back to our webservers. We need to log the IP of each request, the
referrer string and the POST data. Standard logs take care of the first
two, but how can I write out the POST data as well?

Some research suggests that I can use the $request_body to grab this
information, but I'm not sure when it's populated/flushed and also
whether I can write out directly from nginx or whether I need a custom
module.

I'm using nginx 0.7.64 on Gentoo (amd64) with 2.6.21-xen kernel.

Any help would be greatly appreciated :D

Dave

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Attachments:
open | download - smime.p7s (5.7 KB)
Subject Author Posted

Log POST data to file for debugging Attachments

Dave Barton August 10, 2010 06:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 267
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