From nobody Sun Aug 28 22:00:34 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 4MG6vV4CNJz4ZTWf for ; Sun, 28 Aug 2022 22:00:38 +0000 (UTC) (envelope-from dan@langille.org) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 4MG6vT1d5Dz3wGm for ; Sun, 28 Aug 2022 22:00:37 +0000 (UTC) (envelope-from dan@langille.org) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9D9685C010F; Sun, 28 Aug 2022 18:00:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 28 Aug 2022 18:00:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= cc:cc:content-transfer-encoding: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=1661724036; x= 1661810436; bh=JFX2K62JbsTVdOM3T2eBIRoWL081Jihb7fEkoSxUzdk=; b=a b5GIKij+z5LER2JFZ/jZhQB5aMrE3+OU5Zk4LyYj9SeQ4BAw5Ht2fkTb+VQs57GO QgYu99PY45rVmZq9TamGFMmb+M634P4dOBrM2l2qUx3LjyJDiQhwYwDdjhd/+4BG yFiy++bb63xPe8P7qs/ptdPcM+y8H8oOSDw6fZK3+Ea6b0uAwOgXwasxDcALkxJJ Oqk4QDDVXBusDhshR11fgSrMC8hb8R/9+vBt+z/+b5PgmNDkvv9Bd+TcmvNg9a0/ +qs+n/gyFgeNFxJQFJ8ZB7+pVJdynnGxxroq1OPp7OCGKGZuq29dnO8iEtQ1BMq8 tzWxE0I4t/4inq/pDUVQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=1661724036; x= 1661810436; bh=JFX2K62JbsTVdOM3T2eBIRoWL081Jihb7fEkoSxUzdk=; b=s CjL1QFZSMzdJBP+gQMasiKIEQdukqRSIb2Saj6x1Lwzwm4qR2tE3liLzEshis+TC UxHyCXDjMKrhSLDJC5bowfomzzJuwESam4CwINGCgwgb6w1P+2TNj4wjUw81EU8B JIUFM2c5jf6+/YWh1I/YERQD3tnjdCa+KPLHZYtdz3XiW4eqenvaKPH5Fsz1hFAU yfrxPqMeP/iPia6qLMEu4GefZYd9I5eA9Y9vfpHe3TRaPh3kXLShd/r8V0U2lg/a 34Xi7nTQKapK/mefP4MmSsR1oLEnjtfZ+jfOh1RZRPI+KHOaaExwWBt6FAH/2lhI 0eZc7q7DkLv51DS4CRMbw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdektddgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfvefhkffffgggjggtgfesth ekredttdefjeenucfhrhhomhepffgrnhcunfgrnhhgihhllhgvuceouggrnheslhgrnhhg ihhllhgvrdhorhhgqeenucggtffrrghtthgvrhhnpefgfeefudevveefudejjeffueetfe dtgfdvveehffdtjedvvdektefhkeeffeejvdenucffohhmrghinheplhgrnhhgihhllhgv rdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epuggrnheslhgrnhhgihhllhgvrdhorhhg X-ME-Proxy: Feedback-ID: ifbf9424e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 28 Aug 2022 18:00:35 -0400 (EDT) Subject: Re: turn on timestamps in kernel log messages? To: void References: <20220828165715.fr3gvjk2esatukn5@shelly.nomadlogic.org> Cc: "freebsd-questions@freebsd.org" From: Dan Langille Message-ID: Date: Sun, 28 Aug 2022 18:00:34 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:52.0) Gecko/20100101 PostboxApp/7.0.56 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 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4MG6vT1d5Dz3wGm X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=langille.org header.s=fm1 header.b="a b5GIKi"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="s CjL1QF"; dmarc=pass (policy=none) header.from=langille.org; spf=pass (mx1.freebsd.org: domain of dan@langille.org designates 66.111.4.28 as permitted sender) smtp.mailfrom=dan@langille.org X-Spamd-Result: default: False [-4.20 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[langille.org,none]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.28]; R_DKIM_ALLOW(-0.20)[langille.org:s=fm1,messagingengine.com:s=fm1]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.28:from]; RWL_MAILSPIKE_GOOD(-0.10)[66.111.4.28:from]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[dan]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; DKIM_TRACE(0.00)[langille.org:+,messagingengine.com:+]; FREEMAIL_TO(0.00)[f-m.fm]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N void wrote on 8/28/22 1:11 PM: > 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 Did it work? -- Dan Langille dan@langille.org : https://langille.org/