haproxy syslog comptible
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-unsubscr...@freebsd.org"
Re: haproxy syslog comptible
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-unsubscr...@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 x.x.net sshd 1253 - - Received signal 15; terminating. <38>1 2019-04-12T10:48:05.058693-04:00 x.x.net sshd 1238 - - Server listening on :: port 22. (Note that the precision also depends upon the client application logging to syslog.) Cheers, Paul. ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: haproxy syslog comptible
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-unsubscr...@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 x.x.net sshd 1253 - - > Received signal 15; terminating. > <38>1 2019-04-12T10:48:05.058693-04:00 x.x.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] ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: haproxy syslog comptible
On Jun 24, 2019, at 10:42 AM, 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-unsubscr...@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 x.x.net sshd 1253 - - Received signal 15; terminating. <38>1 2019-04-12T10:48:05.058693-04:00 x.x.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] I guess this works only on FreeBSD 12 and later, then. What version are you running? Cheers, Paul. ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: haproxy syslog comptible
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-unsubscr...@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 x.x.net sshd 1253 - - > > Received signal 15; terminating. > > <38>1 2019-04-12T10:48:05.058693-04:00 x.x.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. ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: haproxy syslog comptible
>> 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. The option certainly exists in 11.3-PRERELEASE also: SYNOPSIS syslogd [-468ACcdFHkNnosTuv] [-a allowed_peer] [-b bind_address] [-f config_file] [-l [mode:]path] [-m mark_interval] [-O format] [-P pid_file] [-p log_socket] [-S logpriv_socket] Steinar Haug, Nethelp consulting, sth...@nethelp.no ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: haproxy syslog comptible
I don´t think it´s changed in 12 but on 11.2 I´m using in haproxy.conf global daemon maxconn 512 # Total Max Connections. This is dependent on ulimit nbproc 1 ssl-default-bind-options no-sslv3 no-tls-tickets ssl-default-bind-ciphers EECDH+AESGCM:AES256+EECDH:AES128+EECDH:AES256+RSA log 192.168.0.2 local2 defaults log global In syslog.conf # HAProxy local2.*/var/log/haproxy.log On 2019-06-24 16:56, sth...@nethelp.no wrote: 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. The option certainly exists in 11.3-PRERELEASE also: SYNOPSIS syslogd [-468ACcdFHkNnosTuv] [-a allowed_peer] [-b bind_address] [-f config_file] [-l [mode:]path] [-m mark_interval] [-O format] [-P pid_file] [-p log_socket] [-S logpriv_socket] Steinar Haug, Nethelp consulting, sth...@nethelp.no ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org" ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"