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


   > > > You can customize the `log_format`field in plugin metadata according 
to your needs.
   > > 
   > > 
   > > 试了下没生效,配置如下:
   > > ```
   > > {
   > >   "batch_max_size": 1,
   > >   "broker_list": {
   > >     "X.X.X.X": 9092
   > >   },
   > >   "disable": false,
   > >   "include_req_body": true,
   > >   "include_resp_body": true,
   > >   "kafka_topic": "xxxxx",
   > >   "log_format": {
   > >     "apisix_latency": "$apisix_latency",
   > >     "upstream_latency": "$upstream_latency"
   > >   },
   > >   "max_retry_count": 3
   > > }
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > 求指引~
   > 
   > 仔细看了下好像是要 PUT 到 plugin_metadata里面,那这里有个问题,我并不知道默认的log_format是怎么写的,如果我直接改成
   > 
   > ```
   > {
   > "log_format": {
   >     "apisix_latency": "$apisix_latency",
   >     "upstream_latency": "$upstream_latency"
   >   }
   > }
   > ```
   > 
   > 那其他字段是不是都没了?只剩下这2个字段?希望可以提供一个默认的log_format,然后我们追加下这2个字段.....
   
   用log_format应该就没法记录request_body了吧?


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