From nobody Sun Aug 28 17:11:17 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MG0Tj4ynmz4b0V9 for ; Sun, 28 Aug 2022 17:11:21 +0000 (UTC) (envelope-from void@f-m.fm) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MG0Th5Bx4z3QQq for ; Sun, 28 Aug 2022 17:11:20 +0000 (UTC) (envelope-from void@f-m.fm) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B48275C00CB for ; Sun, 28 Aug 2022 13:11:19 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 28 Aug 2022 13:11:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1661706679; x=1661793079; bh=6OBQFNucNW 8UMii/YHE12w41CjQqdabbSALxVPtoRGk=; b=EA6NoSPiqar2gW0U3ZvBTZFJYj hIBe6okAf56NBtr27fxYvod9pHKP3fMWk4HhiVsIiixHfi2ooKP4aw/fHvrN0Ygr JfVVPMOnQELi4AcNhyJ4HicGOyPRqvPK1gLTm0Rs1sv8vGDjWg5FlXkXiHiKEdJU amDD1m5y5Qtkg8GsCqrec6cjaZN1ASQTmNTnkQX66kxg+BBfc1o3mCxWqW3Mq10z dADxkeaeKDymMGSMw8yR78RImC9/JCB0Rej/OWTIWegnYnNmHOs9uOF4cHZzbPT6 l9QXD+KUjF87TgZ6w2Xd08Pi/OszVXtDs2Sw1y2BNAbFI6MrdEho+DRK2gRA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1661706679; x=1661793079; bh=6OBQFNucNW8UMii/YHE12w41CjQq dabbSALxVPtoRGk=; b=yJkSIrESvad8MnQHYzrK+TQdXP1q95dFGZ3GPyfdT3eg sZ8ixZ1E+XEWc65j5vJzBWigJ57eI88bpUtq9FTdcf6dy5nhwNJ2NOaPtvnx1wuZ /tZJaczJyA/aM0XVeKeKL30Uky/F7qtDSXhEW8ozvSJG0R/CByLGDUEE+MhlCpTo bJ70PtjzHJWHmPqEuhRl3mdWXk0IZy6uN0JJBov5KNbWfJxRcV3ZyLphZ6US5h8I P+ZjjkNBuwPJcFfLr5iLs3k8E+HauUMU32iE1czy8JDlIlU/Mc1llrspMJ2dRmuH +H9+moVKpxwKaKHoWbOpkUxCV5Bay0k9KMW3Uko6Yg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdejledgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpehvohhiugcuoehvohhiugesfhdqmhdrfhhmqeenucggtffr rghtthgvrhhnpeekleduvdelhfeileefgffghfffkedtheellefgudfgvdegkeejjedutd ehhefgueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehvohhiugesfhdqmhdrfhhm X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 28 Aug 2022 13:11:19 -0400 (EDT) Date: Sun, 28 Aug 2022 18:11:17 +0100 From: void To: freebsd-questions@freebsd.org Subject: Re: turn on timestamps in kernel log messages? Message-ID: Mail-Followup-To: freebsd-questions@freebsd.org References: <20220828165715.fr3gvjk2esatukn5@shelly.nomadlogic.org> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20220828165715.fr3gvjk2esatukn5@shelly.nomadlogic.org> X-Rspamd-Queue-Id: 4MG0Th5Bx4z3QQq X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm1 header.b=EA6NoSPi; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=yJkSIrES; dmarc=pass (policy=none) header.from=f-m.fm; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 66.111.4.27 as permitted sender) smtp.mailfrom=void@f-m.fm X-Spamd-Result: default: False [-3.95 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_SHORT(-1.00)[-0.995]; NEURAL_HAM_LONG(-0.99)[-0.990]; NEURAL_HAM_MEDIUM(-0.86)[-0.861]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.27]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm1,messagingengine.com:s=fm1]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.27:from]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[f-m.fm]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On Sun, Aug 28, 2022 at 04:57:15PM +0000, Pete Wright wrote: > >i think you are looking for the kern.msgbuf_show_timestamp sysctl knob: > >via dmesg(8) >kern.msgbuf_show_timestamp: 0 > If set to 0, no timetamps are added. If set to 1, then a > 1-second granularity timestamp will be added to most lines in the > message buffer. If set to 2, then a microsecond granularity > timestamp will be added. This may also be set as a boot > loader(8) tunable. The timestamps are placed at the start of > most lines that the kernel generates. Some multi-line messages > will have only the first line tagged with a timestamp. awesome! TYVM --