I have a question about the redfish and the connection with REST and the D-Bus.
It is about logs. For instance, I can create a log on D-Bus like this:
# busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging xyz.openbmc_project.Logging.Create Create ssa{ss} "This is a Test" "xyz.openbmc_project.Logging.Entry.Level.Error" 3 "EntryType" "Event" "LogDiagnosticDataType" "CPER" "AdditionalDataURI" "path/to/cper/log"
And the log is stored in /var/lib/phosphor-logging/
# cat /var/lib/phosphor-logging/errors/8
såThis is a Test"AdditionalDataURI=path/to/cper/logEntryType=EventLogDiagnosticDataType=CPER0.1.6så
and I can see it with REST:
$ curl -k -X GET https://root:0penBmc@${bmc}/xyz/openbmc_project/logging/entry/8
{
"data": {
"AdditionalData": [
"AdditionalDataURI=path/to/cper/log",
"EntryType=Event",
"LogDiagnosticDataType=CPER"
],
"Associations": [],
"EventId": "",
etc...
But How can I do the same for redfish? I thought that it was equivalent, that logs are available for both interfaces but usign redfish I see nothing:
$ curl -k -X GET https://root:0penBmc@${bmc}/redfish/v1/Systems/system/LogServices
{
"@odata.id": "/redfish/v1/Systems/system/LogServices",
"@odata.type": "#LogServiceCollection.LogServiceCollection",
"Description": "Collection of LogServices for this Computer System",
"Members": [
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog"
},
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/HostLogger"
}
],
"Members@odata.count": 2,
...
$ curl -k -X GET https://root:0penBmc@${bmc}/redfish/v1/Systems/system/LogServices/EventLog/Entries
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries",
"@odata.type": "#LogEntryCollection.LogEntryCollection",
"Description": "Collection of System Event Log Entries",
"Members": [],
"Members@odata.count": 0,
"Name": "System Event Log Entries"
}
In https://github.com/openbmc/bmcweb/blob/master/Redfish.md#redfishv1managersbmclogservices it just says that the image needs phosphor-logging and -DBMCWEB_ENABLE_REDFISH_DBUS_LOG_ENTRIES and I checked and it is like that (is the default for ast-2600)
Then, How can I write/read logs available via redfish?