we are trying to access apigee saas message processor logs by not sending to external tools but using any script . Is it possible
What information are you trying to get?
Hi Carlos - One of our API has requirement to log request and response data . I have seen some posts to send data to loggly /splunk . Since those require subscription we were thinking of accessing message processor logs and put some sort of scripting to access them SAAS apigee servers and store them in our DB 🙂
Thanks
Ravi Tanniru
Aha! Understand. I'm fairly certain we don't log request/response payloads. Generally the logs on the internal processes are only going to be useful from an operations perspective .. care and feeding of the components themselves, and won't have useful information about API traffic.
I think you could do something similar with a simple service callout. You could use Javascript to make it asynchronous .. just fire and forget .. so you don't have to worry about the response holding up the API traffic processing.
Hi @ravi_tanniru, @Carlos Eberhardt makes a good point that you can leverage ServiceCallouts (http) to send data to endpoints other than loggly/splunk by using MessageLogging policy. If you end goal is to store that data in your DB, you can leverage JavaCallouts or JavaScript policy along with the associated libraries to asynchronously & directly write to your DB.