flash520 opened a new issue #6724:
URL: https://github.com/apache/apisix/issues/6724
### Description
我使用apisix作为服务网关,我想要通过kafka-logger记录repsonse body中返回的部分字段,
如后台服务返回一个json,包含以下字段{"code":1, "success": false}
我在apisix kafka-logger中配置
{
"broker_list": {
"kafka-ingress.kafka.svc.cluster.local": 9092
},
"disable": false,
"include_req_body": true,
"include_resp_body": true,
"include_resp_body_expr": [
"code",
"==",
1
],
"kafka_topic": "xxx-schjy",
"producer_type": "async",
"timeout": 3
}
但不能成功,我应该如何配置呢。
### Environment
- APISIX version (run `apisix version`):
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]