EDR: How to fetch data in csv format using curl
book
Article ID: 288615
calendar_today
Updated On:
Products
Carbon Black EDR (formerly Cb Response)
Issue/Introduction
How to fetch data into csv format using curl.
Resolution
- When making a request, append ?format=csv to the end
- For example, if sensors meta data is required from UI, it can be fetched in csv format using below query.
curl -s -k -XGET -H "X-Auth-Token:<APITOKEN>" "https://<CBRSERVER>/api/v2/sensor?format=csv"
Additional Information
Below query can be used for fetching the data in json format.
curl -s -k -XGET -H "X-Auth-Token:<APITOKEN>" "https://<CBRSERVER>/api/v1/sensor"
Feedback
thumb_up
Yes
thumb_down
No