Threat Report: Exposing Malware in Linux-Based Multi-Cloud Environments | Download Now

EDR: How to fetch data in csv format using curl

EDR: How to fetch data in csv format using curl

Environment

  • EDR Server: all versions

Objective

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 Notes

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"

Labels (1)
Tags (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎08-24-2021
Views:
6146
Contributors