If you are assigned the API Monitor or Admin role, you can use the API Monitor page to monitor the invocations of managed APIs in an organization.
You can filter and view the following details for each API invocation:
•The timestamp when the API was invoked
•The context that API Center adds to the API URL
•The service provider of the API
•The HTTP method of the API
•The API endpoint URL that was invoked
•The IP address of the incoming API request
•The polices that were applied to the API
•The status code of the API response
•The short log of the error message if the API invocation failed
•The total duration, in milliseconds, when the gateway receives a request, processes it, delegates to implementation, and responds back
You can select the time frame for which you want to view the API invocation details. You can select one of the following time frames:
•Last 1 hour
•Last 2 hours
•Last 3 hours
•Last 4 hours
•CUSTOM
You can use CUSTOM to customize the time frame for which to view the API invocation details.
You can filter the search results based on the Provider, IP Address, Duration, API Context, and Method fields.
Viewing and downloading API activity logs
You can view and download API activity logs of the API invocations from the API Monitor page. You can download log entries as a text file from the last one through four hours.
To download a log file, on the API Monitor page, from the time frame menu, select a time frame and click Download.
Activity logs display a maximum of the first 500 invocations in a selected time range. You can also download activity logs for a maximum of 30 days. Use the CUSTOM option from the time frame menu to download activity logs for a customized time period. Use the Select Date Range time picker to set the customized time period.
Consider the following guidelines when you customize a time period:
•The time interval between the start time and end time can't exceed 4 hours.
•The start time must not be less than 30 days.
•You can view a maximum of 500 records. If your current date and time range exceeds this value, narrow down the date and time range to view holistic data.