NREL / api-umbrella

Open source API management platform
http://apiumbrella.io
MIT License
2.01k stars 324 forks source link

Logging of upstream requests #518

Open chrispytoes opened 4 years ago

chrispytoes commented 4 years ago

I'm new to API Umbrella and I want to be able to debug something with my setup. I am using Docker. I've looked through the logs in /opt/api-umbrella/var/log but I'm only seeing the incoming request logs here.

Is is possible to get a log of the outgoing requests to my backends that API Umbrella is generating? Mainly I'm looking to see the full URL and all request headers sent by API Umbrella, as well as the raw body and details from the backend response.

I'm very surprised this info isn't already available in the admin UI. Seems like pretty important information to have.

mmaberry-yottaa commented 4 years ago

@chrispytoes the actual upstream request can be seen in /opt/api-umbrella/var/log/trafficserver/access.log. It does take a second or two to show up, I believe it has to go through the analytics portion first. I agree with you it would be nice to see that expose in the UI.