You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/12/24 07:43:31 UTC

[GitHub] [apisix] jagerzhang edited a comment on issue #5910: request help: can the log-plugins supports to logging upstream_latency and apisix_latency?

jagerzhang edited a comment on issue #5910:
URL: https://github.com/apache/apisix/issues/5910#issuecomment-1000699400


   > 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": "ngate_prod",
     "log_format": {
       "apisix_latency": "$apisix_latency",
       "upstream_latency": "$upstream_latency"
     },
     "max_retry_count": 3
   }
   ···
   
   求指引~


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org