All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Feist <james.feist@linux.intel.com>
To: Patrick Williams <patrick@stwcx.xyz>
Cc: "Bills, Jason M" <jason.m.bills@linux.intel.com>,
	openbmc@lists.ozlabs.org,
	Brad Bishop <bradleyb@fuzziesquirrel.com>,
	"Puli, Apparao" <apparao.puli@linux.intel.com>,
	Ratan Gupta <ratagupt@linux.vnet.ibm.com>
Subject: Re: Redfish EventService Implementation
Date: Tue, 16 Jun 2020 09:11:43 -0700	[thread overview]
Message-ID: <7e16df1c-38b0-d488-dbbf-75fe9ac818ab@linux.intel.com> (raw)
In-Reply-To: <20200616152428.GA4618@heinlein>

On 6/16/2020 8:24 AM, Patrick Williams wrote:
> On Mon, Jun 15, 2020 at 02:42:11PM -0700, James Feist wrote:
>> On 6/15/2020 5:50 AM, Ratan Gupta wrote:
>>>       eg:
>>>           sd_journal_send("MESSAGE=%s", "Account Modified",
>>>               "PRIORITY=%i", LOG_INFO, "REDFISH_MESSAGE_ID=%s",
>>> "REDFISH_RESOURCE_PATH=/redfish/v1/AccountService/accounts/<id>",
>>>               "REDFISH_RESOURCE_TYPE=ComputerSystem"
>>>               "REDFISH_REGISTRY_PREFIX=Task/Base/Resource/Oem",
>>>               "REDFISH_MESSAGE_ARGS=%s", "Off", NULL);
>>
>> If we're going to go down the path of re-implementing logging, I think
>> the goal should be to stop logging things in the Journal that are
>> Redfish specific, and instead log them in some generic format that
>> phosphor logging controls the map. Right now we are bifurcated because
>> the dbus-event-logs, SEL, PEL, and Redfish are all using different
>> methods of logging, that play to their own set of rules.
> 
> Absolutely agree with you here.  There is zero reason that applications
> should start logging specially formed messages with REDFISH_* meta-data.
> We shouldn't have any applications explicitly know about Redfish except
> the Redfish providers themselves.  This is no different from IPMI, PLDM,
> or any other external interface.
> 
> The kind of information presented here as being interesting to expose
> via Redfish is equally as interesting to me to be able to add to one of
> our 'FFDC dumps', which could be used for security / forensic work.
> 
>> Most repos use
>> phosphor-logging, so instead of creating yet another daemon, if we added
>> support to create a 'System Level' or 'External User' log that has
>> predefined dictionaries of required and optional keys, something like
>> phosphor-dbus-interfaces, we might be able to drop some of these
>> transport specific logs, and have the transports based on the same
>> database (the journal). Then each transport could filter these based on
>> journal entry type, and transform them into the correct log for that
>> transport. I think adding more Redfish specifics into the logs hinders
>> those who do not want Redfish in their systems.
> 
> Can't we do this already today by defining a simple errors/metadata file
> in phosphor-dbus-interfaces and calling 'logging::report<...>' on it?
> This will create a record on dbus in phosphor-logging.
> 
I think the original concern was with supporting on the order of 10,000 
log entries, having this on d-bus seemed impractical. Also the free log 
rotation the journal provides is useful. Now modifying the 
logging::report<...> to conditionally log to the journal seems realistic.

  reply	other threads:[~2020-06-16 16:11 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-31 20:53 Redfish EventService Implementation RAJESWARAN THILLAIGOVINDAN
2020-02-09 20:22 ` RAJESWARAN THILLAIGOVINDAN
2020-02-17 20:11   ` RAJESWARAN THILLAIGOVINDAN
2020-02-19 19:19   ` Puli, Apparao
2020-02-24  6:37     ` Ratan Gupta
2020-02-25 14:06       ` Puli, Apparao
2020-05-05 11:43         ` RAJESWARAN THILLAIGOVINDAN
2020-05-26 12:20         ` RAJESWARAN THILLAIGOVINDAN
2020-05-27  3:48           ` Puli, Apparao
2020-05-27 11:50             ` RAJESWARAN THILLAIGOVINDAN
2020-05-27 18:58               ` Puli, Apparao
2020-05-28 13:26                 ` Ratan Gupta
2020-05-29 15:45                   ` Redfish event log for new local user addition Puli, Apparao
2020-06-02  6:30                     ` Ratan Gupta
2020-06-08 21:08 ` Redfish EventService Implementation Brad Bishop
2020-06-09  0:58   ` James Feist
2020-06-15 12:50     ` Ratan Gupta
2020-06-15 21:42       ` James Feist
2020-06-16 15:24         ` Patrick Williams
2020-06-16 16:11           ` James Feist [this message]
2020-06-17 12:08             ` Ratan Gupta
2020-06-17 17:16               ` James Feist
2020-06-17 17:19               ` Bills, Jason M
2020-06-17 18:30                 ` Andrew Geissler
2020-06-17 20:45               ` Patrick Williams
2020-06-19 13:26                 ` Ratan Gupta
2020-06-19 22:19                   ` Bills, Jason M
2020-06-23  7:27                   ` Ratan Gupta
2020-06-24 16:24                     ` James Feist
2020-06-24 20:39                       ` Patrick Williams
2020-06-25 13:45                       ` Brad Bishop
2020-06-25 16:42                         ` James Feist
2020-06-25 15:49                       ` Brad Bishop
2020-06-25 16:44                         ` James Feist
2020-06-25 17:26                     ` Brad Bishop
2020-06-25 18:55                       ` Bills, Jason M
2020-06-29  8:00                         ` Ratan Gupta
2020-06-29  8:07                         ` Ratan Gupta
2020-06-29 15:33                           ` Bills, Jason M
2020-07-03 10:15                             ` Ratan Gupta
2020-07-06 21:30                               ` Bills, Jason M
2020-07-13  6:32                                 ` Ratan Gupta
2020-07-14 21:08                                   ` James Feist
2020-07-30  9:10                                     ` Ratan Gupta

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=7e16df1c-38b0-d488-dbbf-75fe9ac818ab@linux.intel.com \
    --to=james.feist@linux.intel.com \
    --cc=apparao.puli@linux.intel.com \
    --cc=bradleyb@fuzziesquirrel.com \
    --cc=jason.m.bills@linux.intel.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=patrick@stwcx.xyz \
    --cc=ratagupt@linux.vnet.ibm.com \
    /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.