#StackBounty: echo_read_request_body doesn't work. How to log POST request body (nginx)?

Bounty: 100

I need to log POST data.
I have added to my config

 location / {
     access_log     /var/log/nginx/domains/site.post.log postdata;

And also added this to http section

log_format  postdata '$time_local $request_body';

But in my log I can see only local time and dash:

23/Jul/2016:16:07:49 +0000 - 

What’s the problem?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.