Download Sensor Logs

Endpoint URL: https://<your server>/rest/sensors/action/download-logs/:batchID
Endpoint URI: sensors/action/download-logs

Action: GET

Download sensor logs retrieved in a previous API request to the machine on which the API request was sent. For details on how to retrieve the logs, see Retrieve Sensor Logs.

Depending on the manner in which you send the request, you must perform additional actions to save the file appropriately.

You must be assigned the System Admin role and Sensor Admin L1 role (if your Cybereason environment uses sensor grouping) to send requests to this endpoint URL.

Note

Ensure that you have logged into the Cybereason platform. For details, see Log in with the API.

Request Headers

You must add an Content-Type:application/json header with the request.

Note

If you are using cURL, add the authorization cookie details or the path to the file with cookie details with every request.


Request Body

None


Request Parameters

URL/URI parameters: You must provide the batchID parameter from the previous retrieval request.

Request Body Parameters: none


Response Status Codes

This request can return the following status codes:

  • 200: Success OK or an error message saying why.

  • 404: The provided Batch ID was not found.


Response Success Schema

Logs download to the machine.


Response Failure Schema

None


Example: Retrieve the logs from a sensor

Request

curl --request GET \
    --url https://12.34.56.78/rest/sensors/action/download-logs/1268429474 \
    --header 'Content-Type:application/json' \

Response

Logs are downloaded