Hello,
I have a query regarding logging in Apigee. Specifically, I have observed the logging mechanism within Application Integration and find it highly useful for tracing and monitoring executed requests.
My question is as follows: Is there a way to access detailed logs for API requests made on a proxy like the application integration logs? I require a comprehensive view of the request, including the steps it followed, which policies were invoked, and any failures that occurred. This functionality should be akin to a debug session but available within the logs, as enabling debug sessions continuously in a production environment is not feasible.
Thank you.
Solved! Go to Solution.
Hey Bassant,
The major reason for the design difference as per debug capabilities within Application Integration versus Apigee is due to the fact that Apigee API proxies are typically lightweight in nature and can be invoked millions (if not tens of millions) times per month/year. As a result, logging every part of a request would not scale well from a performance perspective, and the logging cost would become incredibly expensive for an end user.
Given the above, we typically recommend using something as follows: https://github.com/kurtkanaskie/apigeex-api-proxy-logging-cloud-logging where you can customize the log entries/types/etc on a per policy basis, where you can add debug logging on specific API calls and something more minimal on others as needed.
Let us know if this helps, thanks!
Hey Bassant,
The major reason for the design difference as per debug capabilities within Application Integration versus Apigee is due to the fact that Apigee API proxies are typically lightweight in nature and can be invoked millions (if not tens of millions) times per month/year. As a result, logging every part of a request would not scale well from a performance perspective, and the logging cost would become incredibly expensive for an end user.
Given the above, we typically recommend using something as follows: https://github.com/kurtkanaskie/apigeex-api-proxy-logging-cloud-logging where you can customize the log entries/types/etc on a per policy basis, where you can add debug logging on specific API calls and something more minimal on others as needed.
Let us know if this helps, thanks!
Thank you @hartmann for your response!