Log Service
This resource represents system health event logs and maintenance event logs.
System Health Event Log
URI: /redfish/v1/Systems/1/LogServices/[logservice id]
Method: GET
Response: 200
{
"@odata.type": "#LogService.v1_1_0.LogService",
"@odata.id": "/redfish/v1/Systems/1/LogServices/Log1",
"Id": "Log1",
"Name": "Health Event Log Service",
"MaxNumberOfRecords": 4096,
"OverWritePolicy": "WrapsWhenFull",
"DateTime": "2023-07-03T00:26:24Z",
"DateTimeLocalOffset": "+00:00",
"ServiceEnabled": true,
"Status": {
"State": "Enabled",
"Health": "OK"
},
"LogEntryType": "SEL",
"Oem": {
"Supermicro": {
"@odata.type": "#SmcLogService.v1_0_0.LogService",
"ACPowerOnEventLog": true,
"FIFOEventLog": true,
"SmartPowerEventLog": true
}
},
"Entries": {
"@odata.id": "/redfish/v1/Systems/1/LogServices/Log1/Entries"
},
"Actions": {
"Oem": {
"#SmcLogService.ClearAcknowledgements": {
"target": "/redfish/v1/Systems/1/LogServices/Log1/Actions/Oem/SmcLogService.ClearAcknowledgements"
}
},
"#LogService.ClearLog": {
"target": "/redfish/v1/Systems/1/LogServices/Log1/Actions/LogService.ClearLog"
}
}
}
Supported Actions
Clearing Logs
Use this API to delete all system health event log entries.
URI: /redfish/v1/Systems/1/LogServices/Log1/Actions/LogService.ClearLog
Method: POST
Response: 200
Clearing Acknowledgments
Use this API to clear acknowledgments to all log entries.
URI: /redfish/v1/Systems/1/LogServices/Log1/Actions/Oem/SmcLogService.ClearAcknowledgements
Method: POST
Response: 200
Log Entry Collection
Navigate to view a collection of Log Entry resource instances.
/redfish/v1/Systems/1/LogServices
URI: /redfish/v1/Systems/1/LogServices/[logservice id]/Entries
Method: GET
Response: 200
{
"@odata.type": "#LogEntryCollection.LogEntryCollection",
"@odata.id": "/redfish/v1/Systems/1/LogServices/Log1/Entries",
"Name": "Health Event Log Service Collection",
"Description": "Collection of Health Event Logs",
"Members": [
{
"@odata.type": "#LogEntry.v1_7_0.LogEntry",
"@odata.id": "/redfish/v1/Systems/1/LogServices/Log1/Entries/1",
"Id": "1",
"Name": "Health Event Log Entry 1",
"EntryType": "SEL",
"Severity": "Critical",
"Created": "2023-08-14T22:06:39Z",
"EntryCode": "Assert",
"SensorType": "Physical Chassis Security",
"SensorNumber": 170,
"Message": "[SEC-0000] General chassis intrusion",
"MessageId": "0x00FFFF",
"Oem": {
"Supermicro": {
"MarkAsAcknowledged": false,
"@odata.type": "#SmcLogEntryExtensions.v1_0_1.LogEntry",
"RawEventData": {
"EventDirAndType": "0x6F",
"SensorType": "0x05",
"SensorName": "Chassis Intru"
}
}
}
}
],
"Members@odata.count": 1,
"@odata.etag": "\"37923498b2bd37c38d9c1175d04bd122\""
}
Acknowledging an Event
URI: /redfish/v1/Systems/1/LogServices/Log1/Entries/[num]
Method: PATCH
Payload:
{
"Oem":{ "Supermicro":{ "MarkAsAcknowledged": true } }
}
Response: 200
Maintenance Event Log
URI: /redfish/v1/Managers/1/LogServices/[logservice id]
Method: GET
Response: 200
Supported Actions
Clearing Logs
Use this API to delete all maintenance event log entries.
URI: /redfish/v1/Managers/1/LogServices/Log1/Actions/LogService.ClearLog
Method: GET
Response: 200
Log Entry Collection
Navigate to view the collection of Log Entry resource instances.
URI: /redfish/v1/Managers/1/LogServices/[logservice id]/Entries
Method: GET
Response: 200
{
"@odata.type": "#LogEntryCollection.LogEntryCollection",
"@odata.id": "/redfish/v1/Managers/1/LogServices/Log1/Entries",
"Name": "Maintenance Event Log Service Collection",
"Description": "Collection of Maintenance Event Logs",
"Members": [
{
"@odata.type": "#LogEntry.v1_7_0.LogEntry",
"@odata.id": "/redfish/v1/Managers/1/LogServices/Log1/Entries/1",
"Id": "1",
"Name": "Maintenance Event Log Entry 1",
"EntryType": "Oem",
"Severity": "OK",
"Created": "2023-08-14T22:03:18Z",
"OemRecordFormat": "SMC",
"Message": "[MEL-0123] Maintenance event logs were cleared successfully.",
"MessageId": "Event.1.0.BmcEvtCleared",
"Oem": {
"Supermicro": {
"@odata.type": "#SmcLogEntryExtensions.v1_0_1.LogEntry",
"Interface": "Redfish",
"User": "ADMIN",
"Source": "10.124.1.193",
"Category": "Others"
}
}
}
],
"Members@odata.count": 1,
"@odata.etag": "\"2dec7e96ae97a2a4208e182930a44753\""
}