tianqiuming opened a new issue #4550: URL: https://github.com/apache/apisix/issues/4550
### Issue description 添加Kafka-logger后,批量上报日志到kafka后,变成JSONArray格式 ### Environment Bug report without environment information will be ignored or closed. * apisix version (cmd: `apisix version`):2.7 * OS (cmd: `uname -a`):centos7.2 * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):1.19.3.1 * etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):3.5.0 * apisix-dashboard version, if have:2.7 * luarocks version, if the issue is about installation (cmd: `luarocks --version`): ### Minimal test code / Steps to reproduce the issue Bug report without steps to reproduce will be ignored or closed. 1.正确配置上游、路由和服务。 2.启用kafka-logger插件,正确配置broker_list和kafka_topic参数,其他参数用默认值。 3.通过网关连续多次上游服务。 ### What's the actual result? (including assertion message & call stack if applicable) 上报到kafka后台的数据变成了JSONArray格式。 ### What's the expected result? 单条的JSONObject格式数据。 注:当batch_max_size配置为1时,上报到kafka的数据为JSONObject格式数据,如果用户想要JSONObject,只能不启用批量上报日志功能。 -- 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]
