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/11/24 04:17:18 UTC

[GitHub] [apisix] zlhgo commented on issue #5596: request help: save upstream name to var

zlhgo commented on issue #5596:
URL: https://github.com/apache/apisix/issues/5596#issuecomment-977519041


   1. etcd data
   ```
   /apisix/upstreams/d430db86
   {"create_time":1637547549,"pass_host":"pass","nodes":[{"host":"172.16.213.197","port":8000,"weight":100,"priority":0}],"desc":"Created by apisix-ingress-controller, DO NOT modify it manually","hash_on":"vars","id":"d430db86","update_time":1637547549,"labels":{"managed-by":"apisix-ingress-controller"},"name":"devops_flask-demo_8000","type":"roundrobin","scheme":"http"}
   ```
   2. nginx.conf
   ```
   log_format main '[$upstream_name]';
   ```
   
   3. access.log
   127.0.0.1 - - [10/Sep/2021:10:41:10 +0800] [devops_flask-demo_8000]
   
   


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