Chapter 2. Insights for Red Hat Enterprise Linux advisor service data export
Users of the advisor service can export a report (in either JSON or CSV format) that shows the recommendations affecting each of your registered systems. Exported reports include the following information:
- Host name
- Inventory UUID for the host
- RHEL version
- Date and time of the last data upload from this host to Insights for Red Hat Enterprise Linux
- Title of the recommendation impacting the host
- Link to the solution for this recommendation
- Total risk posed by this recommendation (from 1 to 4; 1 means low risk, 4 means high risk)
- Likelihood of this recommendation being active on your registered systems (from 1 to 4 = 1 means unlikely; 4 means highly probable)
- Date this recommendation was published
- Link to the scan results for this host
2.1. Exporting reports using the advisor service
To export a report using the advisor service, complete the following steps:
- Navigate to the Operations > Advisor > Recommendations page and log in if necessary.
- Apply filters as needed to refine results.
- Click the Download icon located to the right of the Search box in the toolbar.
- Select either Export to CSV or Export to JSON depending on your preference.
- In the dialog box, select Open with and specify an application with which to open the file, or click Save File and click OK.
2.2. Exporting advisor service data using the API
Use the advisor service API to export data in one of the following ways:
For CSV file type
Request URL:
Curl
curl -X GET "https://console.redhat.com/api/insights/v1/export/hits.csv" -H "accept: */*"
For JSON file type
Request URL:
Curl
curl -X GET "https://console.redhat.com/api/insights/v1/export/hits.json" -H "accept: application/json"
API documentation for all of the Insights for Red Hat Enterprise Linux services is available at Red Hat Insights for Red Hat Enterprise Linux API.