Read Details of a Log
With this method, you can read the details of a specific log ID. For example, whether the creation of thing instance corresponding to the log ID succeeded or failed. The response includes the following details:
-
Log ID
-
Timestamp
-
Log Status, for example, Success or Error status with creation of a specific thing instance.
-
Log Details, for example, the message text on the status of the thing creation. This includes the thing ID and thing name.
Request
URI: /Logging/Logs('<<log ID>>')
Operation Type: CRUD
HTTP Method: GET
Permissions: monitor.r
Request Parameters
| Parameter | Required | Data Type | Description | Parameter Type |
|---|---|---|---|---|
| log ID | Yes | GUID | Unique log ID | Path |
Request Example
/Logging/Logs('C4244252A7EA43F892B2FE82CC7C64B6')Response
Response Status and Error Codes
| Code | Description |
|---|---|
| 200 | Logs details retrieved successfully |
Payload
Format: JSON
Media types supported are JSON and XML. The JSON for this method has the following structure:
{
"d": {
"__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": "{\"thingId\":\"B739F3004387424A9CAFB832C9B52642\",\"name\":\"BMWCarX2\",\"url\":\"https://appiot-mds-ci.cfapps.sap.hana.ondemand.com/Things('B739F3004387424A9CAFB832C9B52642')\",\"alternateId\":\"BMWCarX2-altid\"}"
}
}