coolboywcm opened a new issue, #9295:
URL: https://github.com/apache/apisix/issues/9295
### Description
How can I use the [http-logger] plugin to retrieve both the **route_name**
and **rep_body** in the log content for a specific route without affecting the
logging of other routes? I know that the **$route_name** variable can be used
to retrieve the route name from the meta property of the [http-logger[ plugin,
but this is a global configuration. Is it possible to retrieve the route_name
within the http-logger plugin for a specific route only?
my [http-logger] plugin content:
"http-logger": {
"_meta": {
"disable": false
},
"concat_method": "new_line",
"include_req_body": true,
"include_resp_body": true,
"uri": "http://xxxxxxx/apisix/addLog"
}
### Environment
APISIX version (3.1.0):
Operating system (CentOS Linux release 7.6.1810):
OpenResty / Nginx version (nginx version: openresty/1.21.4.1):
etcd version, if relevant ("etcd_version":"3.4.0"):
APISIX Dashboard version, if relevant(3.0.0)
--
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]