Read Log Details of a Correlation
With this method, you can retrieve the status of the individual requests corresponding to a correlation ID. For example, the individual status of the thing instances to be created specified in the request payload. For every single thing instance creation request, a log ID is generated. The response includes the following details:
-
Log ID, for example, unique log IDs for every thing instance to be created.
-
Timestamp
-
Log Status, for example, whether the creation of thing instance corresponding to this log ID succeeded or failed.
Request
URI: /Logging/Correlations('<<Correlation ID>>')/Logs
Operation Type: CRUD
HTTP Method: GET
Permissions: monitor.r
Request Parameters
| Parameter | Required | Data Type | Description | Parameter Type |
|---|---|---|---|---|
| correlation ID | Yes | GUID | Unique correlation ID | Path |
Query String Parameters
| Parameter | Required | Data Type | Description |
|---|---|---|---|
| $filter | No | String |
Filter condition to be applied; the valid fields are log ID and log status. The filter operators supported are eq, lt, gt, le, ge, and ne. Multiple filters are supported using the separators – and, or. |
Request Example
/Logging/Correlations('<<Correlation ID>>')/LogsResponse
Response Status and Error Codes
| Code | Description |
|---|---|
| 200 | Log details retrieved successfully |
Payload
Format: JSON
Media types supported are JSON and XML. The JSON for this method has the following structure:
{
"d": {
"results": [
{
"__metadata": {
"id": "https://service-metrics-sap-ci.cfapps.sap.hana.ondemand.com:443/ServiceMonitoring/Logging/Logs('C4244252A7EA43F892B2FE82CC7C64B6')",
"uri": "https://service-metrics-sap-ci.cfapps.sap.hana.ondemand.com:443/ServiceMonitoring/Logging/Logs('C4244252A7EA43F892B2FE82CC7C64B6')",
"type": "com.sap.appiot.service.Log"
},
"LogID": "C4244252A7EA43F892B2FE82CC7C64B6",
"Timestamp": "/Date(1557734655033)/",
"LogStatus": "Success",
"LogDetails": null
},
{
"__metadata": {
"id": "https://service-metrics-sap-ci.cfapps.sap.hana.ondemand.com:443/ServiceMonitoring/Logging/Logs('66FA474E6BE54D568571C70A4C6EED8B')",
"uri": "https://service-metrics-sap-ci.cfapps.sap.hana.ondemand.com:443/ServiceMonitoring/Logging/Logs('66FA474E6BE54D568571C70A4C6EED8B')",
"type": "com.sap.appiot.service.Log"
},
"LogID": "66FA474E6BE54D568571C70A4C6EED8B",
"Timestamp": "/Date(1557734655033)/",
"LogStatus": "Success",
"LogDetails": null
}
]
}
}