Log full request body


Hello there,

I have some requests that are failing and I would love to capture the full request to the logs so I know how to reproduce the error.

Is there a variable with the request body (if it’s a POST then the body contains a JSON) that I can send to logs ?



Hey @Nicolae_N – it’s not possible to log post bodies with Fastly at the moment. But, depending on the nature of your errors, you may want to log geographic data, user-agent strings, or other headers that could explain other aspects of the end user or request.


If you place {req.postbody}V into the log field, I get postbody data? Is this a new feature in 2017 ?