Trying to generate log files using Apigee built in Rest API

Hello Apigee,

We are trying to generate log file for a particular day. As per Apigee we followed below URL to generate log file and able to generate.

https://apidocs.apigee.com/api-monitoring/apis/get/logs.

But we would like to fetch logs for a particular day and in the documentation it is mentioned we need to specify in ISO format.

Could you please help us to give Date and time in that format.

Thank you.

Rajesh Nimmada

Solved Solved
0 1 183
1 ACCEPTED SOLUTION

I got the information from the document itself.

Below is the ISO Date format

By default, the API returns logs for the previous one hour. Use the from, to, and timeRange query parameters to specify a different duration. The from and to query paramaters use an ISO formatted time range. The date format can be either:

  • yyyy-mm-ddThh:mm:ssZ
  • yyyy-mm-ddThh:mm:ss+00:00

View solution in original post

1 REPLY 1

I got the information from the document itself.

Below is the ISO Date format

By default, the API returns logs for the previous one hour. Use the from, to, and timeRange query parameters to specify a different duration. The from and to query paramaters use an ISO formatted time range. The date format can be either:

  • yyyy-mm-ddThh:mm:ssZ
  • yyyy-mm-ddThh:mm:ss+00:00