From nobody Mon Aug 29 04:48:55 2022 X-Original-To: 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 4MGHyv4bWJz4bF4w for ; Mon, 29 Aug 2022 04:49:11 +0000 (UTC) (envelope-from andyf@andyit.com.au) Received: from alpine.spintel.net.au (alpine.spintel.net.au [203.23.236.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MGHyt4Q3rz3QXQ for ; Mon, 29 Aug 2022 04:49:10 +0000 (UTC) (envelope-from andyf@andyit.com.au) Received: from drunkfish.andyit.com.au (unknown [202.87.175.55]) by alpine.spintel.net.au (Postfix) with ESMTPS id 16E634C2B7B for ; Mon, 29 Aug 2022 14:49:03 +1000 (AEST) Received: from [172.22.2.15] (tosh2.andyit.com.au [172.22.2.15]) by drunkfish.andyit.com.au (8.16.1/8.16.1) with ESMTPS id 27T4n3ee024743 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Mon, 29 Aug 2022 14:49:03 +1000 (AEST) (envelope-from andyf@andyit.com.au) Message-ID: Date: Mon, 29 Aug 2022 14:48:55 +1000 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 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: turn on timestamps in kernel log messages? Content-Language: en-US To: questions@freebsd.org References: <20220828165715.fr3gvjk2esatukn5@shelly.nomadlogic.org> <20220829040424.wdunjidqvprd76xn@shelly.nomadlogic.org> From: Andy Farkas In-Reply-To: <20220829040424.wdunjidqvprd76xn@shelly.nomadlogic.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4MGHyt4Q3rz3QXQ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of andyf@andyit.com.au has no SPF policy when checking 203.23.236.77) smtp.mailfrom=andyf@andyit.com.au X-Spamd-Result: default: False [-1.20 / 15.00]; AUTH_NA(1.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[203.23.236.77:from]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:18390, ipnet:203.23.236.0/24, country:AU]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[andyit.com.au]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 29/08/2022 2:04 pm, Pete Wright wrote: > might be worth adjusting your syslog.conf to capture all kern.* > messages, then they'll land in /var/log/messages or somewhere similar > and have human readable timestamps. I have this in my /etc/rc.conf : syslogd_enable="YES" syslogd_flags="-ss -vv" this in my /etc/syslog.conf : *.*;console.none                                /var/log/all.log and this in my /etc/newsyslog.conf : /var/log/all.log                        600  6     *    $W0D1 J [you'll get double logging without console.none] -andyf