From: Jiaqing Zhao <jiaqing.zhao@linux.intel.com>
To: zehra.ozdemir@inventron.com.tr, openbmc@lists.ozlabs.org
Cc: "'M. Erhan Yigitbasi'" <erhan.yigitbasi@inventron.com.tr>
Subject: Re: Event Logs in Redfish
Date: Thu, 18 Aug 2022 11:57:46 +0800 [thread overview]
Message-ID: <1d9222dc-da75-a976-e1c6-8f00354b76b3@linux.intel.com> (raw)
In-Reply-To: <000001d8b21c$9b095c60$d11c1520$@inventron.com.tr>
There are 2 kinds of logging backend implemented in bmcweb, DBus-based and
journal-based. By default the journal-based one is used. To switch to the
DBus-based logging backend, add `EXTRA_OEMESON += "-Dredfish-dbus-log='enabled'"`
to your bmcweb bbappend file.
On 2022-08-17 17:34, zehra.ozdemir@inventron.com.tr wrote:
> Hello,
>
>
>
> I am trying to get an event log and I created a sample log by calling
> logging create dbus interface as down below:
>
>
>
> busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging
> xyz.openbmc_project.Logging.Create Create ssa{ss} "Hata olustu"
> "xyz.openbmc_project.Logging.Entry.Level.Critical" 1 "CALLOUT_GPIO_NUM" "5"
>
>
>
> It seems to created successfully when I viewed "GetManagedObjects" object of
> the interface :
>
>
>
> busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging
> org.freedesktop.DBus.ObjectManager GetManagedObjects
>
>
>
> output:
>
>
>
> a{oa{sa{sv}}} 2 "/xyz/openbmc_project/logging/entry/1" 8
> "org.freedesktop.DBus.Peer" 0 "org.freedesktop.DBus.Introspectable" 0
> "org.freedesktop.DBus.Properties" 0 "xyz.openbmc_project.Common.FilePath" 1
> "Path" s "/var/lib/phosphor-logging/errors/1"
> "xyz.openbmc_project.Software.Version" 2 "Version" s "0.1.0" "Purpose" s
> "xyz.openbmc_project.Software.Version.VersionPurpose.BMC"
> "xyz.openbmc_project.Association.Definitions" 1 "Associations" a(sss) 0
> "xyz.openbmc_project.Object.Delete" 0 "xyz.openbmc_project.Logging.Entry" 10
> "Id" u 1 "Timestamp" t 1660660714372 "Severity" s
> "xyz.openbmc_project.Logging.Entry.Level.Critical" "Message" s "Hata olustu"
> "EventId" s "" "AdditionalData" as 1 "CALLOUT_GPIO_NUM=5" "Resolution" s ""
> "Resolved" b false "ServiceProviderNotify" b false "UpdateTimestamp" t
> 1660660714372 "/xyz/openbmc_project/logging/internal/manager" 4
> "org.freedesktop.DBus.Peer" 0 "org.freedesktop.DBus.Introspectable" 0
> "org.freedesktop.DBus.Properties" 0
> "xyz.openbmc_project.Logging.Internal.Manager" 0
>
>
>
> However, no data is displayed in the web-ui. So, I examined the bmcweb
> method which deals with getting event log requests from dbus and nothing
> seems wrong. When I call this bmcweb method with redfish api, count returns
> zero.:
>
>
>
> curl -c cjar -b cjar -k
> https://{$bmc}/redfish/v1/Systems/system/LogServices/EventLog/Entries
> <https://%7b$bmc%7d/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 short, what exactly do I need to do to view these event logs in the web
> ui?
>
>
>
> Thank you.
>
prev parent reply other threads:[~2022-08-18 3:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-17 9:34 Event Logs in Redfish zehra.ozdemir
2022-08-18 3:57 ` Jiaqing Zhao [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1d9222dc-da75-a976-e1c6-8f00354b76b3@linux.intel.com \
--to=jiaqing.zhao@linux.intel.com \
--cc=erhan.yigitbasi@inventron.com.tr \
--cc=openbmc@lists.ozlabs.org \
--cc=zehra.ozdemir@inventron.com.tr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.