jagerzhang commented on issue #5910:
URL: https://github.com/apache/apisix/issues/5910#issuecomment-1002364234


   > Hi @jagerzhang, AFAIK, you could follow this step to configure 
kafka-logger plugin:
   > 
   > 1. (optional) `PUT /plugin_metedata` to use your custom `log_format` 
configuration for that plugin;
   > 2. `PUT /routes` with `kafka-logger` configuration.
   > 
   > plugin_metedata is more like a General configuration, and it will work for 
all `kafka-logger` plugin.
   
   
感谢回复,这个方法我知道了哈,但是有另外一个疑问,因为如果按照这个方法来定义log_format,那么日志格式就完全按照定义的log_format来生成了,这里是一个覆盖模式,希望支持下增量模式,即我定义的字段只是append到默认的日志里面而不是直接覆盖。
   
   比如 log_format 我定义为 `{"upstream_latency": 
$upstream_latency}`,那么最终日志格式希望是在默认日志的基础上,**增加**这个字段。
   
   不知道我这样描述清楚了么?
   
   
   


-- 
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]


Reply via email to