From owner-freebsd-stable@freebsd.org Mon Jun 24 14:44:07 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EC61C15CF6C3 for ; Mon, 24 Jun 2019 14:44:06 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (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 591F870F58 for ; Mon, 24 Jun 2019 14:44:06 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1hfQCS-000AlC-EU; Mon, 24 Jun 2019 17:44:04 +0300 Date: Mon, 24 Jun 2019 17:44:04 +0300 From: Slawa Olhovchenkov To: Paul Mather Cc: freebsd-stable@freebsd.org Subject: Re: haproxy syslog comptible Message-ID: <20190624144404.GL2161@zxy.spb.ru> References: <20190624141721.GK47119@zxy.spb.ru> <30C12D55-56E1-43BC-90FE-D870BF811718@gromit.dlib.vt.edu> <20190624144239.GK2161@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190624144239.GK2161@zxy.spb.ru> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-Rspamd-Queue-Id: 591F870F58 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [2.25 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.69)[0.693,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[zxy.spb.ru]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.06)[0.056,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: zxy.spb.ru]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.61)[0.613,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:5495, ipnet:195.70.192.0/19, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[country: RU(0.01)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jun 2019 14:44:07 -0000 On Mon, Jun 24, 2019 at 05:42:39PM +0300, Slawa Olhovchenkov wrote: > On Mon, Jun 24, 2019 at 10:35:03AM -0400, Paul Mather wrote: > > > On Jun 24, 2019, at 10:17 AM, Slawa Olhovchenkov wrote: > > > > > I am use haproxy logged to syslog and have log lines like this: > > > > > > Jun 24 17:04:25 ha01 haproxy[32508]: 193.34.87.146:57625 > > > [24/Jun/2019:17:04:23.277] balancer~ default-pool/main 0/0/0/-1/2012 504 > > > 194 - - sH-- 888/888/4/4/0 0/0 "POST /vs HTTP/1.1" > > > > > > Is this posible to learn syslogd to use mileseconds timestamps? > > > _______________________________________________ > > > freebsd-stable@freebsd.org mailing list > > > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > > > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > > > > > > Run syslogd with "-O syslog" to get timestamps logged with microsecond > > precision (as well as time zones). You can add that to your > > "syslogd_flags" setting in /etc/rc.conf. (See man syslogd for details.) > > > > Note that the format of syslog entries changes with "-O syslog". You get > > logs like this: > > > > <38>1 2019-04-12T10:43:56.525458-04:00 xxxxx.xxxxx.net sshd 1253 - - > > Received signal 15; terminating. > > <38>1 2019-04-12T10:48:05.058693-04:00 xxxxx.xxxxx.net sshd 1238 - - Server > > listening on :: port 22. > > > > > > (Note that the precision also depends upon the client application logging > > to syslog.) > > I mean you talk about different syslogd, not from FreeBSD: > > syslogd: illegal option -- O > usage: syslogd [-468ACcdFknosTuv] [-a allowed_peer] > [-b bind_address] [-f config_file] > [-l [mode:]path] [-m mark_interval] > [-P pid_file] [-p log_socket] Ah, I am see -- I am need syslogd from FreeBSD-12, thx.