Skip to contentSkip to conversation

couple questions for Event Log

DISCUSSION 刘锡伟 2 participants 2 messages Jan 18, 2019

lore
Share & tools
lore

刘锡伟

author
#0 lore raw

Hi

1. How to debug the system event log, how to configure it, and what modules are related to the log function?

2. When is the phosphor-sel-logger registration method (IpmiSelAdd, IpmiSelAddOem) invoked? How to use DBUS to read journalctl?

3. Could anyone share a description of the yaml file about phosphor-logging?

Thanks

#1 lore raw
Quoted 3 lines · 刘锡伟

Hi

1.How to debug the system event log, how to configure it, and what modules are related to the log function?

Can you provide more detail? Are you looking specifically for IPMI SEL or general BMC logging through phosphor-logging?

Quoted 2 lines

2.When is the phosphor-sel-logger registration method (IpmiSelAdd, IpmiSelAddOem) invoked? How to use DBUS to read journalctl?

phosphor-sel-logger runs as a service and exposes the IpmiSelAdd and IpmiSelAddOem methods on D-Bus. When either of those methods is invoked, the phosphor-sel-logger creates an IPMI SEL entry in the system journal using the provided data. The journal can then be parsed to extract the SEL entries as found in https://gerrit.openbmc-project.xyz/c/openbmc/intel-ipmi-oem/+/16280.

journalctl is a command-line utility to read the system journal, so it isn't used over D-Bus. Details on journalctl can be found here: https://www.freedesktop.org/software/systemd/man/journalctl.html.

If you want to read the journal in source, you can use the sd_journal APIs here: https://www.freedesktop.org/software/systemd/man/sd_journal.html#. Example usage is in the gerrit review above.

Quoted 7 lines

3.Could anyone share a description of the yaml file about phosphor-logging?

Thanks

Thanks,
-Jason