title: Configure HAProxy to Log Request BODY
body: <p>I understand that it is possible to log the BODY of a POST request with HAProxy since version 1.6.0.  The following <a href="https://www.mail-archive.com/search?l=haproxy@formilux.org&amp;q=subject:%22Re%5C%3A+Looking+for+help+about+%5C%22req.body%5C%22+logging%22&amp;o=newest&amp;f=1" rel="nofollow">mail archive</a> indicates that we need to use req.body somehow and log the capture.req.hdr in the log-format.</p>
  
  <p>The person asking in the above link had the following front-end in their config:</p>
  
  <pre><code>frontend www-http
      bind 0.0.0.0:9000
  
      option http-buffer-request
      declare capture request len 400000
      http-request capture req.body id 0
      log-format {"%[capture.req.hdr(0)]"}
  </code></pre>
  
  <p>But presumably this is wrong, hence their question.</p>
  
  <p>What is the exact syntax to do this?</p>