Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: ** X-Spam-Status: No, score=2.4 required=3.0 tests=BAYES_00, CHARSET_FARAWAY_HEADER,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2DB4C433DF for ; Wed, 14 Oct 2020 10:38:30 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9DC4420878 for ; Wed, 14 Oct 2020 10:38:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9DC4420878 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=quantatw.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CB85Z2BzPzDqml for ; Wed, 14 Oct 2020 21:38:26 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=quantatw.com (client-ip=219.87.191.90; helo=mx01.quantatw.com; envelope-from=prvs=54939ef4a=spencer.ku@quantatw.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=quantatw.com X-Greylist: delayed 68 seconds by postgrey-1.36 at bilbo; Wed, 14 Oct 2020 21:37:15 AEDT Received: from mx01.quantatw.com (mx01.quantatw.com [219.87.191.90]) by lists.ozlabs.org (Postfix) with ESMTP id 4CB84C03cVzDqVD for ; Wed, 14 Oct 2020 21:37:13 +1100 (AEDT) IronPort-SDR: jmn4J64j0aSStDb2Jhbi4FXcO2WOB2v9pbwHSPPnYpF1KugWcPzbwphJMoOrqInQN4yxAWbOq9 4895to595lJw== Received: from unknown (HELO mailbx11.quanta.corp) ([10.243.91.108]) by mx01.quantatw.com with ESMTP; 14 Oct 2020 18:36:00 +0800 Received: from mailbx11.quanta.corp (10.243.91.108) by mailbx11.quanta.corp (10.243.91.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2044.4; Wed, 14 Oct 2020 18:35:58 +0800 Received: from mailbx11.quanta.corp ([192.168.57.11]) by mailbx11.quanta.corp ([192.168.57.11]) with mapi id 15.01.2044.004; Wed, 14 Oct 2020 18:35:58 +0800 From: =?big5?B?U3BlbmNlciBLdSAopWqlQLfsKQ==?= To: Artem Senichev , OpenBMC Maillist Subject: Modify Timestamp of phosphor-hostlogger Thread-Topic: Modify Timestamp of phosphor-hostlogger Thread-Index: AdaiFYMxC9eQT4jmT3KA6ZOgpczIEw== Date: Wed, 14 Oct 2020 10:35:58 +0000 Message-ID: <4b1c3d6cd2fb42a9b4ca166ac90f9ae9@quantatw.com> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.243.91.252] Content-Type: multipart/alternative; boundary="_000_4b1c3d6cd2fb42a9b4ca166ac90f9ae9quantatwcom_" MIME-Version: 1.0 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: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" --_000_4b1c3d6cd2fb42a9b4ca166ac90f9ae9quantatwcom_ Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: base64 SGkgQWxsLA0KV2UgaGF2Z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ug d2lsbCBwdXNoIHRoZSBjaGFuZ2VzIHRvIHVwc3RyZWFtLg0KUGxlYXNlIGxldCB1cyBrbm93IGlm IHRoZXJlJ3MgYW55IGlzc3VlLCB0aGFuayB5b3UuDQoNClNpbmNlcmVseSwNClNwZW5jZXINCg== --_000_4b1c3d6cd2fb42a9b4ca166ac90f9ae9quantatwcom_ Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable

Hi All,

We= have worked on a redfish URI that provides host log information, which is = based on obmc-console and phosphor-hostlogger. Now we can get host log and = fill information into host log entry, but here we have a problem about timestamp.

 

On= e of the log entry level =A1=A7created time=A1=A8, need to follow the time = format like RFC3339, and for now, the host log only provides hour, minute, = and second time info. We want to modify the timestamp to RFC3339 format to fit the log entry time format.

 

Here is a sample host log with = timestamp providing by phosphor-hostlogger:

[ 00:00:31 ] >>> Log collection star= ted at 1970-01-01 00:00:31

 

After modified, the message wil= l be liked:

[ 1970-01-01T00:00:31+00:00 ] >>>= ; Log collection started at 1970-01-01 00:00:31

 

if the ch= anges make sense, we will push the changes to upstream.

Please le= t us know if there's any issue, thank you.

&nbs= p;

Sincerely= ,

Spencer

--_000_4b1c3d6cd2fb42a9b4ca166ac90f9ae9quantatwcom_--