Search code examples
gatewayapi-gatewaykongkong-plugin

kong gateway request and response body


I am using KONG API gateway to send REST API requests to my microservices in JSON format. when I using KONG (TCP-http-UDP-file) LOG plugins It shows all details about my requests (headers-status code and etc) except request body.!

The Question is : how can I receive my request and response body logs with KONG API gateway.?


Solution

  • It's the intention of Kong to not log the body of requests/responses.

    @teunis90(Senior developer at Kong): The request/response body is left out of the logs on purpose as it is not bound (we don't want to log the response body of a video streaming service) and will likely never be, within Kong itself. Please feel free to implement a plugin using the new functionality. source