SEL Event logs in Redfish
Bills, Jason M
jason.m.bills at linux.intel.com
Thu Jun 3 02:59:55 AEST 2021
On 6/1/2021 7:32 PM, Lei Yu wrote:
> On Wed, Jun 2, 2021 at 3:05 AM Bills, Jason M
> <jason.m.bills at linux.intel.com> wrote:
>> On 5/28/2021 1:58 AM, Jayashree D wrote:
>>> Classification: Public
>>> Hi Jason,
>>> In journalctl log, I found that the sensor value is crossed the threshold value.
>>> But when I tried in Redfish API, I am not able to see any logs, whether anything I am missing here ?
>>> Could you please provide suggestions on this .
>> Unfortunately, we ran into trouble trying to persist the journal to
>> flash, so we have one additional layer where rsyslog watches for any
>> journal entries that have a "REDFISH_MESSAGE_ID" metadata and logs them
>> to '/var/log/redfish' where bmcweb pulls them for the Redfish EventLog.
>> If you have the journal event, I'd check if you have 'var/log/redfish'
>> populated with that event. If not, you may need to add the above config
>> to rsyslog to create it and that will hopefully fix the event in Redfish.
> There is a limitation about the way to log SEL event to
> /var/log/redfish, that it only appears in redfish event logs, but not
> in ipmi sel.
When using journal-based logging, the IPMI sel events are in
> On g220a it still uses the logging service to represent the event log
> (see ), and ipmid is updated to consume the logging entries to get
> the SEL entries.
I would expect that the same logging approach would be used for both
IPMI SEL and Redfish. So, either both will use journal-based logging or
both will use D-Bus logging. I don't know if it would work to mix them.
> The missing part is in bmcweb that it does not support the event log
> entries from DBus. We could probably add some new code to make it
> support consuming data from logging service, and it could be
> implemented under a config, so that the user could config which data
> source to get event log at compile time.
I believe that bmcweb supports Redfish event logs from D-Bus log entries
with this option:
> : https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Logging/SEL.metadata.yaml
More information about the openbmc