You can export the API event data that is collectively generated for the aggregated data
sets in all visualizations, and across the defined time frame, in a dashboard. When you export the
event data, a CSV file is created. The CSV file contains one API event record for each API
invocation in the Gateway server.
Procedure
To export API event data from all visualizations in a dashboard, complete the following
steps:
-
Open the dashboard from which you want to export data, as described in Opening saved dashboards.
-
If required, apply filters to change the sampling of data displayed in the visualizations. For
example, specify a different time period, or apply inclusion or exclusion filters.
-
From the dashboard, click the Export icon .
From the dashboard, click the
Export icon .
The Export Analytics Events panel opens to display a
message, which informs you that a CSV file of the exported event data will be generated in the
background.You see a message on the screen, which informs you that a
downloadable CSV file of the collected data will be generated in the background.
-
Click the Export button to start the export. You can
view the status bar to monitor the progress as the file downloads to the server. You can select
Download
Click the Export button to close
the message and start the export.
Important:
- While the file is being generated, you can continue to work within the
analytics dashboards under the Analytics tab. If you switch from
Analytics to another tab (such as Products or
Settings), or to another component in the API
Manager user interface, it cancels the download
step of your Export operation. If you leave the tab, the initial export process to the server
continues in the background. If it is within the time that the Exported files are retained (usually
1 hour by default) and no other Exports are started, you can return to the Analytics tab and select
Download to download the file from the last Export.
- While the file is being generated, you can continue to work within
the analytics dashboards under the Analytics tab. Do not, however, switch
from Analytics to another tab (such as Products or
Settings), or to another component in the API
Manager user interface because this will cancel
the export operation.
- If your browser is configured to block pop-ups, the download of the CSV file might be blocked.
The precise behavior varies across browsers, but if you see a notification about
blocked
pop-ups
, reconfigure the browser to always allow pop-ups for the API
Manager host address. Then attempt the export
again.
-
If prompted, choose to save the file, which is named analytics_export.csv
by default.
The file might also be automatically downloaded depending on your browser.
The file is saved to the download location that is configured for your browser. If you
intend to export more than once, and you are exporting to the same location each time, you might
want to rename each file with a meaningful name to help you differentiate between them.
The CSV
file contains a row for each API event record. You can import this CSV file into other software
tools to further analyze your API Connect
usage. For information about the fields that are included in the CSV file, see API event records.
Note: The content of
the API event records in the CSV file depends on the logging policy that is set for the operation.
If the logging policy includes the HTTP headers and the payload, then these details are included in
the API event record. Where the payload is large, it might take longer to complete the export of the
analytics data. For more information, see
activity-log
policy.
-
Click the Export icon to close the Export Analytics Events message panel.