Kong Gateway请求和响应主体

发布于 2025-01-31 01:56:07 字数 213 浏览 3 评论 0原文

我正在使用kong API网关将REST API请求发送给我的微服务JSON格式。当我使用kong(TCP-HTTP-udp-file)日志插件时,它显示了有关我的请求的所有详细信息(headers-status code等),除了请求正义。

问题是: 如何通过Kong API网关接收我的请求和响应身体日志?

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.?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

药祭#氼 2025-02-07 01:56:07

这是Kong不记录请求/响应的主体的目的。

@teunis90(Kong的高级开发人员):请求/响应主体是故意的,因为它没有绑定(我们不想记录视频流服务的响应主体),并且可能会永远不要在孔本身内。请随时使用新功能实现插件。 source

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文