F5 BIG-IQ Centralized Management Lab > BIG-IQ All Labs > Class 3: BIG-IQ Analytics > Module 3: Analytics Reporting Source | Edit on
Lab 3.2: Generate Reports in CSV using the API¶
Note
Estimated time to complete: 5 minutes
Lab environment access¶
If you have not yet visited the page Getting Started, please do so.
Tasks¶
From the lab environment, launch a remote desktop session to have access to the Ubuntu Desktop.
Open a terminal and execute the following script to export the analytics of
site16_boston
into a CSV:cd f5-demo-bigiq-analytics-export-restapi ./export_app_http_stats_csv_demo.sh /security/site16_boston/serviceMain -1h now 60 -1h now 60

The script is getting the Analytics using BIG-IQ API and exports it to a JSON file. Then, the JSON output is converted to a CSV file using a json2csv tool.

- Navigate in the
f5-demo-bigiq-analytics-export-restapi
folder and open theoutput.csv
file.

The data exported correspond to the HTTP Transactions for site16_boston
application services.
