ZChengjin opened a new issue, #8418:
URL: https://github.com/apache/apisix/issues/8418

   ### Description
   
   ### my plugin configuration
   `  "plugins": {
       "ext-plugin-pre-req": {
         "conf": [
           {
             "name": "auc",
             "value": "{\"env\":\"sandbox\",\"system\":\"admin_backend\"}"
           }
         ],
         "disable": false
       },
       "http-logger": {
         "disable": false,
         "include_req_body": true,
         "include_resp_body": true,
         "include_resp_body_expr": [
           [
             "sent_http_content_length",
             "<",
             "4096"
           ]
         ],
         "uri": "http://192.168.67.171:8082/api/v1/visitorLogin";
       }
     }`
   
   ### my log_format
   `curl http://127.0.0.1:9180/apisix/admin/plugin_metadata/http-logger \
   -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "log_format": {
           "host": "$host",
           "@timestamp": "$time_iso8601",
           "client_ip": "$remote_addr",
           "route_name": "$route_name",
           "service_name": "$service_name",
       }
   }'`
   
   ### issues
   
   My server can receive several fields in log_format, but there is no resp_bod 
and req_body. Is my log_format wrong? How to configure log_format?
   
   ### Environment
   
   APISIX version (run apisix version):3.0.0
   Operating system (run uname -a):Linux eee3e01b5631 4.19.76-linuxkit change: 
added doc of how to load plugin. #1 SMP Tue May 26 11:42:35 UTC 2020 x86_64 
GNU/Linux
   OpenResty / Nginx version (run openresty -V or nginx -V):nginx version: 
openresty/1.21.4.1;built by gcc 10.2.1 20210110 (Debian 10.2.1-6);built with 
OpenSSL 1.1.1n 15 Mar 2022
   etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
   APISIX Dashboard version, if relevant:apache/apisix-dashboard:2.13-alpine
   Plugin runner version, for issues related to plugin 
runners:apisix-go-plugin-runner(master)
   LuaRocks version, for installation issues (run luarocks --version):


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