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/02/01 10:43:32 UTC

[GitHub] [apisix] mdh67899 opened a new issue #3474: request help:

mdh67899 opened a new issue #3474:
URL: https://github.com/apache/apisix/issues/3474


   ### Issue description
   
       location = /info {
           proxy_pass http://192.168.1.10/index.html;
           set $appname "app1";
       }
   
   
   我这边有个需求,nginx的location样例是这样写的,转发的时候会在location里设置一个appname变量,用来标记是转发给哪个后台应用的,log_format会将appname打印到日志里,请问在apisix里该怎么实现变量赋值的功能呢?谢谢
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):
   * OS (cmd: `uname -a`):
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   * etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   * apisix-dashboard version, if have:
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] mdh67899 removed a comment on issue #3474: apisix变量赋值

Posted by GitBox <gi...@apache.org>.
mdh67899 removed a comment on issue #3474:
URL: https://github.com/apache/apisix/issues/3474#issuecomment-771339841


   https://github.com/apache/apisix/blob/master/doc/zh-cn/plugins/kafka-logger.md


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] Firstsawyou commented on issue #3474: apisix变量赋值

Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #3474:
URL: https://github.com/apache/apisix/issues/3474#issuecomment-771376786


   > Did kafka-logger support log_format Metadata?
   > 
   > https://github.com/apache/apisix/blob/master/doc/zh-cn/plugins/kafka-logger.md
   
   The kafka-logger plugin does not support it, but the http-logger plugin can support it.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] mdh67899 closed issue #3474: apisix variable assignment

Posted by GitBox <gi...@apache.org>.
mdh67899 closed issue #3474:
URL: https://github.com/apache/apisix/issues/3474


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #3474: apisix变量赋值

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #3474:
URL: https://github.com/apache/apisix/issues/3474#issuecomment-770872457


   @mdh67899 You can take a look at https://github.com/apache/apisix/blob/master/doc/plugins/http-logger.md.
   
   Also, please use English in the public channel :)


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] mdh67899 removed a comment on issue #3474: apisix变量赋值

Posted by GitBox <gi...@apache.org>.
mdh67899 removed a comment on issue #3474:
URL: https://github.com/apache/apisix/issues/3474#issuecomment-771339841


   https://github.com/apache/apisix/blob/master/doc/zh-cn/plugins/kafka-logger.md


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] mdh67899 commented on issue #3474: apisix变量赋值

Posted by GitBox <gi...@apache.org>.
mdh67899 commented on issue #3474:
URL: https://github.com/apache/apisix/issues/3474#issuecomment-771339841


   https://github.com/apache/apisix/blob/master/doc/zh-cn/plugins/kafka-logger.md


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] Firstsawyou commented on issue #3474: apisix变量赋值

Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #3474:
URL: https://github.com/apache/apisix/issues/3474#issuecomment-771376786


   > Did kafka-logger support log_format Metadata?
   > 
   > https://github.com/apache/apisix/blob/master/doc/zh-cn/plugins/kafka-logger.md
   
   The kafka-logger plugin does not support it, but the http-logger plugin can support it.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] mdh67899 commented on issue #3474: apisix变量赋值

Posted by GitBox <gi...@apache.org>.
mdh67899 commented on issue #3474:
URL: https://github.com/apache/apisix/issues/3474#issuecomment-771340253


   Did kafka-logger support log_format  Metadata?
   
   https://github.com/apache/apisix/blob/master/doc/zh-cn/plugins/kafka-logger.md


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] mdh67899 commented on issue #3474: apisix变量赋值

Posted by GitBox <gi...@apache.org>.
mdh67899 commented on issue #3474:
URL: https://github.com/apache/apisix/issues/3474#issuecomment-771339841






----------------------------------------------------------------
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:
users@infra.apache.org