You can view and download API activity logs of the API invocations from the Activity Logs tab on the API Monitor page. You can download log entries as a text file from the last one through four hours.
The following image provides you a glimpse of the activity log:
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
Define time frame for activity logs
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.
Download API activity logs
To download a log file, select a time frame from the time frame menu 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.
Filter search results
You can filter the search results based on the following fields: