GET – Service for BMC Audit event logs
Use the GET method to retrieve properties in Audit log service resource for a server.
Request URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/LogServices/AuditLog
Request body
None
Response body
Field | Type | Description | |||
---|---|---|---|---|---|
Id | String | Uniquely identifies the resource within the collection of the log services resource. Always set to “AuditLog”. | |||
Name | String | The name of the resource or array element. | |||
Description | String | This resource is used to represent a log service for a Redfish implementation. | |||
ServiceEnabled | Boolean | Indicate whether this service is enabled. | |||
MaxNumberOfRecords | Number | The maximum number of log entries this service can have. Always set to 1024. | |||
DateTimeLocalOffset | String | The UTC offset that the current DateTime property value contains in the “+HH:MM” format. | |||
DateTime | String | The current DateTime (with offset) for the log service, used to set or read time. | |||
LogEntryType | String | Multiple | |||
OverWritePolicy | String | The overwrite policy for this service that takes place when the log is full. Always set to “WrapsWhenFull” – When full, new entries to the Log will overwrite previous entries. | |||
Entries | Object | References to the log entry collection. | |||
Actions | Object | The available actions for this resource. | |||
#LogService.ClearLog | Object | This action is used to clear all standard log entries. Note Only for AuditLog, PlatformLog, and SEL. | |||
title | String | ClearLog | |||
target | String | /redfish/v1/Systems/1/LogServices/AuditLog/Actions/LogService.ClearLog |
Status code
HTTP Status Code | Error Message ID |
---|---|
500 | InternalError |
Example
The following example JSON response is returned:
{
"@odata.context": "/redfish/v1/$metadata#LogService.LogService",
"@odata.etag": "\"0BB638F2\"",
"@odata.id": "/redfish/v1/Systems/1/LogServices/AuditLog",
"@odata.type": "#LogService.v1_3_1.LogService",
"Actions": {
"#LogService.ClearLog": {
"target": "/redfish/v1/Systems/1/LogServices/AuditLog/Actions/LogService.ClearLog",
"title": "ClearLog"
},
"Oem": {
...
}
}
},
"DateTime": "2024-12-04T04:49:33+00:00",
"DateTimeLocalOffset": "+00:00",
"Description": "This resource is used to represent a log service for a Redfish implementation.",
"Entries": {
"@odata.id": "/redfish/v1/Systems/1/LogServices/AuditLog/Entries"
},
"Id": "AuditLog",
"LogEntryType": "Multiple",
"MaxNumberOfRecords": 1024,
"Name": "LogService",
"Oem": {
...
}
},
"OverWritePolicy": "WrapsWhenFull",
"ServiceEnabled": true
}