# Proxy logging

**URL:** <https://www.ruby-forum.com/t/proxy-logging/204798>\
**Category:** NGINX\
**Created:** [March 22, 2011, 3:53am UTC](https://www.ruby-forum.com/t/proxy-logging/204798 "2011-03-22T03:53:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 22, 2011, 3:53am UTC](https://www.ruby-forum.com/t/proxy-logging/204798/1 "2011-03-22T03:53:01Z")

</div>

When nginx is used as a proxy, is it possible to log the complete http  
request (headers + body) of both the request and proxied response?

The end goal is to log these values into a database. If I was able to  
shoot a “copy” off each request to a logging service that would be  
ideal. Are there possibilites otherwise?

Any insight is greatly appreciated.

Posted at Nginx Forum:

> **[Proxy logging](https://forum.nginx.org/read.php?2,184722,184722#msg-184722)**
>
> When nginx is used as a proxy, is it possible to log the complete http request (headers + body) of both the request and proxied response? The end goal is to log these values into a database. If I was able to shoot a "copy" off each request...
