Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com (client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com; envelope-from=mspinler@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 48SwRr42bxzDr2y for ; Fri, 28 Feb 2020 01:44:35 +1100 (AEDT) Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01REeTtg115292 for ; Thu, 27 Feb 2020 09:44:31 -0500 Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0b-001b2d01.pphosted.com with ESMTP id 2yden2j9pc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 27 Feb 2020 09:44:31 -0500 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 01REeqDe026814 for ; Thu, 27 Feb 2020 14:44:29 GMT Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by ppma03dal.us.ibm.com with ESMTP id 2ydcmm1e2a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 27 Feb 2020 14:44:29 +0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01REiSB627328982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Feb 2020 14:44:28 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7E3A0136059; Thu, 27 Feb 2020 14:44:28 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4A8D713604F; Thu, 27 Feb 2020 14:44:28 +0000 (GMT) Received: from [9.10.99.171] (unknown [9.10.99.171]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 27 Feb 2020 14:44:28 +0000 (GMT) Subject: Re: Adding a resolved timestamp to phosphor-logging's event logs To: Gunnar Mills , OpenBMC Maillist References: <6155facb-1b35-8c1f-f95e-2aaebee413c6@linux.ibm.com> <587442bf-678b-6c34-f451-32d47d640b33@linux.vnet.ibm.com> From: Matt Spinler Message-ID: <9ee85f09-9735-c245-200a-225534ff268a@linux.ibm.com> Date: Thu, 27 Feb 2020 08:44:27 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <587442bf-678b-6c34-f451-32d47d640b33@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-02-27_04:2020-02-26, 2020-02-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxlogscore=999 adultscore=0 spamscore=0 suspectscore=0 priorityscore=1501 impostorscore=0 phishscore=0 clxscore=1015 malwarescore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002270117 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: , X-List-Received-Date: Thu, 27 Feb 2020 14:44:41 -0000 On 2/25/2020 4:03 PM, Gunnar Mills wrote: > > On 2/25/2020 12:58 PM, Matt Spinler wrote: >> To those that use phosphor-logging's openbmc event logs: >> >> I just put up a phosphor-dbus-interfaces change >> https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/29734 >> to add a new ResolvedTimestamp property to the OpenBMC event log entry. >> >> Next I'll update phosphor-logging to set that timestamp when the >> Resolved >> property changes, so that users can know when an error was resolved. >> > > Redfish is adding a "modified" property to the LogEntry Schema. > https://redfish.dmtf.org/schemas/v1/LogEntry.v1_5_1.json > > (Redfish issue 3854 for those that have access to the repo.) > > Does it make more sense to have a Last Updated Time property on the > event log entry in D-Bus? Then this could map to the Redfish > "modified" property easier.  This property would get updated when the > event log was resolved, unresolved, or any other action. The thing about that Redfish property is that as soon as there is more than one field that can be updated, it becomes ambiguous as people wouldn't know what actually changed, and so I haven't convinced myself yet that is the right thing to do in phosphor-logging.  I'll mull on it some more,  and I still welcome thoughts on this from others. > > Thanks, > Gunnar >