gxthrj opened a new issue #2482:
URL: https://github.com/apache/apisix/issues/2482


   ### Issue description
   
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): master
   * OS: centos 7
   
   ### Minimal test code / Steps to reproduce the issue
   1. use the latest version from master
   2. put metadata for plugin `http-logger`
   ```shell
   curl http://127.0.0.1:8080/apisix/admin/plugin_metadata/http-logger -H 
'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "log_format": {
           "host": "$host",
            "@timestamp": "$time_iso8601",
            "server_name": "$server_name",
            "client_ip": "$remote_addr",
            "x_real_ip": "$http_x_real_ip",
            "x_forwarded_for": "$http_x_forwarded_for",
            "x_forwarded_proto": "$http_x_forwarded_proto",
            "resp_len": "$body_bytes_sent",
            "waster_time": "$request_time",
            "status": "$status",
            "domain_name": "$http_host",
            "request_uri": "$request_uri",
            "uri": "$uri",
            "http_user_agent": "$http_user_agent",
            "request_method": "$request_method",
            "upstream": "$upstream_addr",
            "upstream_status": "$upstream_status",
            "ups_resp_time": "$upstream_response_time",
            "localip": "$server_addr"
       }
   }'
   ```
   3. It is success at first time, and then an error is reported
   
![image](https://user-images.githubusercontent.com/4413028/96677400-156c9780-13a2-11eb-9b68-c1cd41bc2714.png)
   
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to