How to capture log on each instance of the microservice through zuul

1.8k views Asked by At

I have setup multiple instances of my microservice and registered to my eureka server. It uses ribbon for client side load balancing and uses zuul as gateway server. All usual stuff. I would like to capture the logs of which instance of my service is responding for each request. So that I can able to bring some conclusion based on my usage of each instances. How to do that?

1

There are 1 answers

0
pan On BEST ANSWER

You can try to set the loglevel just of the LoadBalancerContext to debug in application.properties

#logging
logging.level.com.netflix.loadbalancer.LoadBalancerContext=DEBUG