Script to save all logs from Apigee Edge

Our account level with Apigee only allows 60 days of analytics reports. To be able to track long term trends of API usage I want to preserve those logs long term. I have successfully made requests using there Management API (https://apidocs.apigee.com/api-monitoring/apis/get/logs) and want to automate the download of the last 40+ days. Since the API is limited to 1000 results per request and 6 requests per minute I'll need to write a script that doesn't break those limits but gets all data. Perhaps downloading in 1 minute intervals at 6 times per minute. That would still take a week to finish, then I have another week of logs to fetch.

I'm guessing someone has already solved this. Hopefully so, and hopefully they can share their script.

1 1 250
1 REPLY 1

I'm also curious about it.