Getting Log Files
This section explains how to get log files.
Request
GET https://<hostname>/api/v1/system/logs?exportLogsType |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameters must be posted as URL.
Parameter | Type | Description |
exportLogsType | string | Sets the type for logs retrieval. Possible values:
Example: exportLogsType=LastDays&days=7
Example: exportLogsType=BetweenDates&fromDateUtc=2020-02-03T23:00.000Z&toDateUtc=2020-02-05T23:00::00.000Z |
Request Body
None.
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 (OK).
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
The response body contains a raw ZIP stream that you might save as a .zip file.
Example
Request: GET https://abc.ukwest.cloudapp.azure.com/api/v1/system/logs?exportLogsType=LastDays&days=7
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: [ ZIP Stream (application/zip) ] |