Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9C58C25B08 for ; Wed, 17 Aug 2022 09:42:50 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4M733D6c5tz3cd4 for ; Wed, 17 Aug 2022 19:42:48 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=inventron.com.tr header.i=@inventron.com.tr header.a=rsa-sha256 header.s=default header.b=dLpPtnL/; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=inventron.com.tr (client-ip=185.216.113.70; helo=ns1.ihsdnsx51.com; envelope-from=zehra.ozdemir@inventron.com.tr; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=inventron.com.tr header.i=@inventron.com.tr header.a=rsa-sha256 header.s=default header.b=dLpPtnL/; dkim-atps=neutral X-Greylist: delayed 397 seconds by postgrey-1.36 at boromir; Wed, 17 Aug 2022 19:41:38 AEST Received: from ns1.ihsdnsx51.com (ns1.ihsdnsx51.com [185.216.113.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4M731t4qRLz3bpW for ; Wed, 17 Aug 2022 19:41:37 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventron.com.tr; s=default; t=1660729294; bh=P/yRRSVCIOAy9Sps/Ng7aVBPVdYt8vaJ0PEfsw3FSGQ=; h=Received:Received:From:To:Subject; b=dLpPtnL/WR2EIexK+vUT3ISu65G65V/rA8bE5lXIY8RtD4e+tEKeNACqhRkUzF2sC JDIwqzctVzXiAINxECx80BueaACy7lnDsSpY1sZZoCOCBb+Z+/HN69xo+YhGYv628n zxFtCURhq2JQSX55uN5CwZKs0maKiYt3oMvT25KI= Received: (qmail 3395189 invoked from network); 17 Aug 2022 12:34:53 +0300 Received: from 78.189.148.199.static.ttnet.com.tr (HELO INVLT5250ZO) (78.189.148.199) by ns1.ihsdnsx51.com with ESMTPSA (DHE-RSA-AES256-GCM-SHA384 encrypted, authenticated); 17 Aug 2022 12:34:52 +0300 From: To: Subject: Event Logs in Redfish Date: Wed, 17 Aug 2022 12:34:52 +0300 Message-ID: <000001d8b21c$9b095c60$d11c1520$@inventron.com.tr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01D8B235.C059A1A0" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdiyHJopTuPfqWGNRRyYnl1m94NWcw== Content-Language: en-us X-PPP-Message-ID: <20220817093453.3395177.24656@ns1.ihsdnsx51.com> X-PPP-Vhost: inventron.com.tr X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "'M. Erhan Yigitbasi'" Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" This is a multipart message in MIME format. ------=_NextPart_000_0001_01D8B235.C059A1A0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 { "@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. ------=_NextPart_000_0001_01D8B235.C059A1A0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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=3D5" "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<= br>{
  "@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.

 

=   

------=_NextPart_000_0001_01D8B235.C059A1A0--