SEL Event logs in Redfish

Bills, Jason M jason.m.bills at
Wed Jun 2 05:05:12 AEST 2021

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.

> root at tiogapass:~# journalctl | grep adc
> Jan 01 00:13:46 tiogapass adcsensor[298]: Sensor _MB_P5V low threshold 4.52 assert: value 4.51 raw data 1337
> curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Systems/system/LogServices/EventLog/Entries
> {
>    "": "/redfish/v1/Systems/system/LogServices/EventLog/Entries",
>    "@odata.type": "#LogEntryCollection.LogEntryCollection",
>    "Description": "Collection of System Event Log Entries",
>    "Members": [],
>    "Members at odata.count": 0,
>    "Name": "System Event Log Entries"
> }
> Thanks,
> Jayashree
> On 5/24/2021 8:15 AM, Bruce Mitchell wrote:
>> On 5/24/2021 06:41, Jayashree D wrote:
>>> Hi Team,
>>> I need some clarification on SEL Logs.
>>> In SEL Event logs, when the error is injected manually , I can able
>>> to see the error logs in "ipmitool sel list" command.
>>> Whether it will also reflect in Redfish API ?
> I am mostly familiar with the journal-bases SEL logging.  In that case, phosphor-sel-logger will detect the error and log it to both IPMI SEL and Redfish at the same time:
> It may also depend on how you are manually injecting the error.
>>> Could you please help me in this.
>>> Thanks,
>>> Jayashree
>>> ________________________________
>>> The contents of this e-mail and any attachment(s) are confidential
>>> and intended for the named recipient(s) only. E-mail transmission is
>>> not guaranteed to be secure or error-free as information could be
>>> intercepted, corrupted, lost, destroyed, arrive late or incomplete,
>>> or may contain viruses in transmission. The e mail and its contents
>>> (with or without referred errors) shall therefore not attach any
>>> liability on the originator or HCL or its affiliates. Views or
>>> opinions, if any, presented in this email are solely those of the
>>> author and may not necessarily reflect the views or opinions of HCL or its affiliates.
>>> Any form of reproduction, dissemination, copying, disclosure,
>>> modification, distribution and / or publication of this message
>>> without the prior written consent of authorized representative of HCL
>>> is strictly prohibited. If you have received this email in error
>>> please delete it and notify the sender immediately. Before opening
>>> any email and/or attachments, please check them for viruses and other
>>> defects.
>>> ________________________________
>> Hi Jayashree,
>> I suggest you connect with Jason Bills on SEL.

More information about the openbmc mailing list