sshniro commented on issue #1512: URL: https://github.com/apache/incubator-apisix/issues/1512#issuecomment-620474349
I assume we can implement this filtering login in the [Log Util](https://github.com/apache/incubator-apisix/blob/0f3310562c1a117f9519b8b022c6ede282cf670b/apisix/utils/log-util.lua#L21) itself. Therefore, all the loggers can have this filtering logic enabled by default. How about this format? ```bash curl http://127.0.0.1:9080/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "username": "foo", "plugins": { "kafka-logger": { "broker_list" : { "127.0.0.1":9092 }, "kafka_topic" : "test2", "key" : "key1", "log_filter":{ response_body: true, request_body: true } } }, "upstream": { "nodes": { "127.0.0.1:1980": 1 }, "type": "roundrobin" }, "uri": "/hello" }' ``` By default request and response, body is disabled. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
