log and no log directives

2013-05-02 Thread Pedro Mata-Mouros
Hi everyone, Not sure I'm getting the way that log works in HAProxy. Is there a way of telling a specific backend to not log stuff? I currently have a log global in the defaults section. I tried putting no log in that backend, but didn't work (still don't understand exactly

log ??

2010-03-06 Thread thierry stephan
Hello, Little stupid question, I just install Haproxy on my FreebSD 8 and it is working well with Apache 22 ... But now, all of my http logs are coming from my local server, not anymore from external public IP :) My server is listening on 8080 and Haproxy on port 80 ... How to resolve this pr

log X-Forwarded-For in haproxy log

2011-07-05 Thread Hugo Silva
7.0.0.1:); therefore haproxy sees an incoming connection from 127.0.0.1. Apache properly sets the X-Forwarded-For header. Question: Can I somehow tell haproxy to log that instead? If it is possible, are there security implications ?

RE: log ??

2010-03-06 Thread Angelo Höngens
> -Original Message- > From: thierry stephan [mailto:len...@wanadoo.fr] > Sent: zaterdag 6 maart 2010 11:03 > To: haproxy@formilux.org > Subject: log ?? > > Hello, > > Little stupid question, I just install Haproxy on my FreebSD 8 and it > is working wel

Re: log ??

2010-03-06 Thread Cyril Bonté
Hi Thierry, Le Samedi 6 Mars 2010 11:02:40, thierry stephan a écrit : > Hello, > > Little stupid question, I just install Haproxy on my FreebSD 8 and it is > working well with Apache 22 ... > But now, all of my http logs are coming from my local server, not > anymore from external public IP :)

Re: log ??

2010-03-06 Thread XANi
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" x_combined first is "standard" (for

Re: log X-Forwarded-For in haproxy log

2011-07-05 Thread Julien Vehent
7.0.0.1: (apache) which then ProxyPass'es to haproxy (127.0.0.1:); therefore haproxy sees an incoming connection from 127.0.0.1. Apache properly sets the X-Forwarded-For header. Question: Can I somehow tell haproxy to log that instead? If it is possible, are there security implic

Re: log X-Forwarded-For in haproxy log

2011-07-07 Thread Hugo Silva
On 07/05/11 21:25, Julien Vehent wrote: > x-forwarded-for is a http header. like any other http header, you can > ask haproxy to log it by using > > frontend XYZ >[...] > option httplog > capture request header X-Forwarded-For len 50 > > > it will a

Re: log X-Forwarded-For in haproxy log

2011-07-08 Thread Willy Tarreau
On Thu, Jul 07, 2011 at 11:42:01AM +0100, Hugo Silva wrote: > On 07/05/11 21:25, Julien Vehent wrote: > > x-forwarded-for is a http header. like any other http header, you can > > ask haproxy to log it by using > > > > frontend XYZ > >[...] > >

Re: log X-Forwarded-For in haproxy log

2013-05-09 Thread Pedro Mata-Mouros
127.0.0.1: (apache) which then ProxyPass'es to haproxy >> (127.0.0.1:); therefore haproxy sees an incoming connection from >> 127.0.0.1. >> >> Apache properly sets the X-Forwarded-For header. >> >> Question: Can I somehow tell haproxy to log

Re: log X-Forwarded-For in haproxy log

2013-05-09 Thread Baptiste
Hi Pedro, You can use the log-format statement available in HAProxy 1.5. Everything is explained in the doc. If you need more help, please let us know. Baptiste On Thu, May 9, 2013 at 3:21 PM, Pedro Mata-Mouros wrote: > Hi, > > Picking up this old thread, is there a way of actually

Re: log X-Forwarded-For in haproxy log

2013-05-10 Thread Pedro Mata-Mouros
if it exists, or use the default %ci in case it doesn't. But no harm done, it's not that big of an issue. :-) Thanks, Pedro. On 10 May 2013, at 07:18, Baptiste wrote: > Hi Pedro, > > You can use the log-format statement available in HAProxy 1.5. > Everything is explaine

[PATCH] CLEANUP: log

2016-02-18 Thread David CARLIER
HI all, There is a tiny patch proposal for the log component. Cheers. From f1924d813f37cd6444d9251605fdd823efb7fe20 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 18 Feb 2016 21:46:48 + Subject: [PATCH] CLEANUP: log The string to be escaped is not marked at const, and it would

HAProxy error log

2016-07-15 Thread CJ Ess
I've got thousands of errors showing up in my haproxy error.log but I'm not sure why, the requests being logged there have a 200 result code and the session state flags are all -'s. However its primarily requests to a particular backend being logged there. What can I do to diagnose? My HAProxy ver

Weird log output

2012-04-04 Thread Guy Knights
ms to change randomly within a pretty small range in every time the above error is logged. Here's my haproxy.cfg file: global log 127.0.0.1 local0 info maxconn 2 user haproxy stats socket /tmp/haproxy.socket uid haproxy mode 770 level admin daemon

Missing log entries

2012-05-02 Thread Peter Gillard-Moss
Hello, I am observing some strange behaviour with haproxy and logging on Ubuntu Oneiric. haproxy is setup to log to /dev/log and logs successfully appear in /var/log/syslog (via rsyslog). Well, some of them do. Some just don't. If I look on the servers we are proxying/load balancing

track & log sessions

2013-04-26 Thread Smain Kahlouch
Hello all, My question is pretty simple. I just want to know if it's possible to track/log a session from the connexion to the disconnexion. I've seen that it was possible with the "capture cookie" statement but i don't want to change something from user side. Is

Log information interpretation

2013-07-10 Thread Qingshan Xie
Hello: I ran a graceful restart command as "aproxy -f conf/haproxy.cfg -f conf/w7.cfg -p run/haproxy.pid -sf $(cat run/haproxy.pid)", the haproxy.log shows the info below.  The 1st line of log shows 0 conn in Frontend and 9705 conns in Backend; then the 2nd line shows 9706 conns i

PATCH/CLEANUP: log

2017-09-21 Thread David CARLIER
Carlier Date: Thu, 21 Sep 2017 14:36:43 + Subject: [PATCH] CLEANUP: log since we do not log the sample fetch when it is invalid, we can free the log data. --- src/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/log.c b/src/log.c index 5c42f6b2a..0fb0f68e0 100644 --- a/src/log.c

Error log format

2018-04-03 Thread sushma anantharam
Hi, Is it possible to change the format of the error logs? I was looking to filter out some of the fields that are printed when error logs are generated. I was able to do so for regular logs, but was not able to do so for error logs. The documentation does seem to indicate that it can't be don

FW: haproxy log

2015-12-14 Thread Cohen Galit
reate sockets. Here is the configuration: global log 127.0.0.1 local0 debug #emerg alert crit errwarning notice info debug maxconn 90096 tune.ssl.default-dh-param 2048 uid 55301 gid 55301 defaults logglobal modetcp o

RE: haproxy log

2015-12-15 Thread Cohen Galit
From: Cohen Galit Sent: Monday, December 14, 2015 11:22 AM To: 'haproxy@formilux.org' Subject: FW: haproxy log Hello! Can you examine the logger below? I'm afraid I have a configuration problem in haproxy config, maybe in one of the timeout limits. These lines are printed only

RE: haproxy log

2015-12-20 Thread Cohen Galit
Guys, We really need your advice here. From: Cohen Galit Sent: Tuesday, December 15, 2015 10:59 AM To: Cohen Galit; 'haproxy@formilux.org' Subject: RE: haproxy log I'm talking about the prints in logs: Dec 13 10:55:15 localhost.localdomain haproxy[11803]: 10.106.161.146:34747

Re: haproxy log

2015-12-20 Thread Cyril Bonté
your "server" lines - ensure your load tests don't exhaust tcp ports. *From:*Cohen Galit *Sent:* Tuesday, December 15, 2015 10:59 AM *To:* Cohen Galit; 'haproxy@formilux.org' *Subject:* RE: haproxy log I'm talking about the prints in logs: Dec 13 10:55:15

RE: haproxy log

2015-12-21 Thread Cohen Galit
xy_VVM/cas-au61 1/0/9998 1239 -- 442/442/442/88/0 0/0 2. The maxconn is much more than we need and test. -Original Message- From: Cyril Bonté [mailto:cyril.bo...@free.fr] Sent: Sunday, December 20, 2015 3:51 PM To: Cohen Galit Cc: haproxy@formilux.org Subject: Re: haproxy log Le

Log Backend call

2020-04-18 Thread Aleksandar Lazic
Hi. I haven't seen any option to log the request after the `http-request set-... ` phase. Is this covered in %HP or is this the request from the client? That's the code and it looks to me that this isn't set after the rewrite phase. http://git.haproxy.org/?p=haproxy.git;a=blob

[PATCH] DOC: log: more than 2 log servers are allowed

2018-03-20 Thread Cyril Bonté
/configuration.txt @@ -818,7 +818,7 @@ group See also "gid" and "user". log [len ] [format ] [max level [min level]] - Adds a global syslog server. Up to two global servers can be defined. They + Adds a global syslog server. Several global servers can be defined. They will rec

Re: [PATCH] DOC: log: more than 2 log servers are allowed

2018-03-20 Thread Willy Tarreau
On Tue, Mar 20, 2018 at 11:30:27PM +0100, Cyril Bonté wrote: > Since commit 0f99e3497, loggers are not limited to 2 instances anymore. Applied, thanks Cyril. Willy

[PATCH] Add log-format variable %HQ, to log HTTP query strings

2015-07-31 Thread Andrew Hayworth
Since this came up in another thread, it seems reasonable to add a patch that implements %HQ as a log-format variable to record the HTTP query string. Leaving the initial '?' is intentional, but I don't feel strongly one way or another. -- - Andrew H

[PATCH] CLEANUP: log: deinitialization of the log buffer in one function

2024-01-29 Thread Miroslav Zagorac
Hello all, In several places in the source, there was the same block of code that was used to deinitialize the log buffer. There were even two functions that did this, but they were called only from the code that is in the same source file (free_tcpcheck_fmt() in src/tcpcheck.c and

TCP log format question

2009-08-26 Thread Dmitry Sivachenko
Hello! I am running haproxy-1.4-dev2 with the following configuration (excerpt): global log /var/run/loglocal0 user www group www daemon defaults log global modetcp balance roundrobin maxconn 2000 option

Log level error/warning

2010-02-04 Thread Reynier Serge
Bonjour, j'ai mis un haproxy en place pour des connexions MySQL et j'aimerai loguer seulement les erreurs et warning de haproxy visible sur la page de stats. Le mode de log est donc tcplog, voici un extrait de mon fichier de conf : listen MySQL x.x.x.x:3306 mode tcp

where is haproxy log?

2010-05-16 Thread Bruno Guimarães Sousa
Hi everyone, using debian squeeze here. I installed haproxy through aptitude. Executing "/etc/init.d/haproxy start" doesn't starts haproxy process and I can't see a log anywhere. Where is the log? What can be happening? regards, -- Bruno Guimarães Sousa www.ifba.edu.br PO

log error in 1.5

2011-03-27 Thread Johannes Smith
I noticed differences in the log of version 1.4 and 1.5-dev4 regarding the number of retries:   1.4: NAME1 NAME2/ -1/-1/-1/-1/10521 400 187 - - CR-- 18/5/0/0/0 0/0 {||} "" 1.5: NAME1 NAME2/ -1/-1/-1/-1/10521 400 180 - - CR-- 10/3/0/0/4294967286 0/0 {||} ""   Retries shouldn't be that large? J.

Apache error log problem

2011-04-07 Thread Greg Connolly
I'm having an issue getting the apache error logs to receive the client ip's. the proxy ip is the only one showing up. I have the apache access log working using the forward-for but not the error logs. Can anyone shed most light in this issue? Here is the current configuration. Ap

Re: [PATCH] CLEANUP: log

2016-02-28 Thread Willy Tarreau
is a tiny patch proposal for the log component. >From f1924d813f37cd6444d9251605fdd823efb7fe20 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 18 Feb 2016 21:46:48 + Subject: [PATCH] CLEANUP: log The string to be escaped is not marked at const, and it would be safer to cop

Re: [PATCH] CLEANUP: log

2016-02-29 Thread David CARLIER
tarted to scratch my > head wondering about the real purpose of the change and/or the reason for > the current code currently being that way. > > On Thu, Feb 18, 2016 at 09:58:49PM +, David CARLIER wrote: > > HI all, > > > > There is a tiny patch pro

Re: [PATCH] CLEANUP: log

2016-02-29 Thread Willy Tarreau
On Mon, Feb 29, 2016 at 10:37:33AM +, David CARLIER wrote: > Hi no problems it is not a bugfix at all, usually just better to copy a > const char instead of casting it in this sort of situation. Nothing else. Yes clearly, but as I said it's better to fix it anyway. Are you interested in workin

Re: [PATCH] CLEANUP: log

2016-02-29 Thread David CARLIER
Sorry I did not see the whole email, just realized ok why not :-) On 29 February 2016 at 11:18, Willy Tarreau wrote: > On Mon, Feb 29, 2016 at 10:37:33AM +, David CARLIER wrote: > > Hi no problems it is not a bugfix at all, usually just better to copy a > > const char instead of casting it i

Re: [PATCH] CLEANUP: log

2016-02-29 Thread David CARLIER
you >> interested >> in working on the solution I proposed ? >> >> Thanks, >> Willy >> >> > From 1c42759fbd31a18c6d3efe669c316a53c4ad6251 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Mon, 29 Feb 2016 19:51:17 + Subject: [PATCH] CLEANUP: log Different ap

Re: [PATCH] CLEANUP: log

2016-02-29 Thread Willy Tarreau
Hi David, On Mon, Feb 29, 2016 at 07:55:45PM +, David CARLIER wrote: > Hi I hope this looks better this time. Yes, thanks. I'll split it in two, one for the API update and the other one for the logs. That way it's easier to know what to backport when we later clean up all other call places.

Missing anchor log format

2016-06-30 Thread m...@felixsanz.com
Poor #anchors. They got replaced by hashtags and no one remembers them. Meanwhile, Custom log formats: | | %H | hostname | string | | H | %HM | HTTP method (ex: POST)| string | | H | %HP | HTTP request URI without

Re: HAProxy error log

2016-07-15 Thread Cyril Bonté
Le 15/07/2016 à 17:46, CJ Ess a écrit : I've got thousands of errors showing up in my haproxy error.log but I'm not sure why, the requests being logged there have a 200 result code and the session state flags are all -'s. However its primarily requests to a particular backend being logged there.

Re: HAProxy error log

2016-07-15 Thread CJ Ess
appears in the error log, however they all have in common a 200 result code and -'s for state flags. I don't know why these would appear in the error log. 2016-07-15T13:00:19-04:00 hostname haproxy[116593]: 127.0.0.1:62401 [15/Jul/2016:13:00:16.191] frontend_name backend_name/server_name 790/

Re: HAProxy error log

2016-07-15 Thread Cyril Bonté
pool of identical servers. Each of these appears in the error log, however they all have in common a 200 result code and -'s for state flags. I don't know why these would appear in the error log. 2016-07-15T13:00:19-04:00 hostname haproxy[116593]: 127.0.0.1:62401 <http://127.0.0.1:62401&

Re: HAProxy error log

2016-07-15 Thread CJ Ess
>From global section: log 127.0.0.1 local0 log 127.0.0.1 local1 err >From defaults section: log global option httplog option log-separate-errors >From rsyslog confg: $Umask $FileCreateMode 0644 local1.* -/var/log/haproxy/haproxy_errors.log No network capture availa

tcp log srv_queue meaning

2017-04-13 Thread linbo liao
Hi, I tried to figure out the srv_queue meaning in tcp log, I searched google and mailing-list but without any result. The document says "srv_queue" is the total number of requests which were processed before this one in the server queue. It is zero when the request has not gone

HTTP Log format unconstant

2011-11-29 Thread Damien Hardy
response header. because if the capture is not set the field is not set either in teh log. My suggestion is maybe to add a letter before "{" to precise if it's query ( ex : "Q{" ) or response ( "R{" ) set of captured headers. or always make them appear. * Olso the he

Web Log Time Stamps

2011-12-31 Thread Kyle Brandt
Does anyone know which point of a web request or session the timestamp in the weblogs represent? In my particular case, I am wondering about http-server-close. Four possibilities come to mind when I think about what it could be: The Start of the http session from the client to the lb The Close of

Log 400 bad request

2012-02-10 Thread Sander Klein
Hi All, I'm having a small problem with non RFC2616 requests. I would like to log them, but haproxy only logs: cluster1-in cluster1-in/ -1/-1/-1/-1/0 400 1951 - - PR-- 235/235/0/0/0 0/0 {|||} {} "" Is there a way to log them with the full host header and URL? I know I can

Re: Weird log output

2012-04-04 Thread Baptiste
Hi, You're logging using the tcp log format (option tcplog from your defaults). You may turn on "option httplog" in your http listen section to get more information about this request. It may be some monitoring systems. Regards On Thu, Apr 5, 2012 at 4:07 AM, Guy Knights wrot

Re: Weird log output

2012-04-05 Thread Guy Knights
Thanks Baptiste. I turned on HTTP logging and I'm now getting the actual HTTP request path in the log output. It looks like it's just logging all calls from the Nginx reverse proxy we have on the box that's doing SSL termination. Is there a way to disable this output to the log? Ob

Re: Weird log output

2012-04-05 Thread Jonathan Matthews
On 5 April 2012 17:30, Guy Knights wrote: > Thanks Baptiste. I turned on HTTP logging and I'm now getting the actual > HTTP request path in the log output. It looks like it's just logging all > calls from the Nginx reverse proxy we have on the box that's doing SSL > ter

Re: Weird log output

2012-04-05 Thread Baptiste
Hi, Well, there is a directive called "dontlog-normal" to log only errors You should give it a try. cheers On Thu, Apr 5, 2012 at 6:30 PM, Guy Knights wrote: > Thanks Baptiste. I turned on HTTP logging and I'm now getting the actual > HTTP request path in the log outpu

Re: Weird log output

2012-04-09 Thread Guy Knights
Thanks guys. I'll look further at the haproxy logging and decide whether to turn off normal log output or not. Regards, Guy On Thu, Apr 5, 2012 at 9:26 PM, Baptiste wrote: > Hi, > > Well, there is a directive called "dontlog-normal" to log only errors > You shoul

Re: Missing log entries

2012-05-02 Thread Baptiste
ange behaviour with haproxy and logging on Ubuntu > Oneiric. > > haproxy is setup to log to /dev/log and logs successfully appear in > /var/log/syslog  (via rsyslog). > > Well, some of them do.  Some just don't. > > If I look on the servers we are proxying/load balancing I can

Re: Missing log entries

2012-05-08 Thread Peter Gillard-Moss
gt; > On Wed, May 2, 2012 at 12:53 PM, Peter Gillard-Moss > wrote: > > Hello, > > > > I am observing some strange behaviour with haproxy and logging on Ubuntu > > Oneiric. > > > > haproxy is setup to log to /dev/log and logs successfully appear in >

Re: track & log sessions

2013-04-26 Thread Baptiste
Hi, Capture cookie doesn't change anything, it adds to the log line the cookie value! pretty simple and straight forward, and this is how people usually track users. Of course, you must enable HTTP logging, turn your frontend in HTTP mode as well. Baptiste On Fri, Apr 26, 2013 at 9:

Re: Log information interpretation

2013-07-12 Thread Willy Tarreau
On Wed, Jul 10, 2013 at 09:10:26AM -0700, Qingshan Xie wrote: > Hello: > > I ran a graceful restart command as "aproxy -f conf/haproxy.cfg -f > conf/w7.cfg -p run/haproxy.pid -sf $(cat run/haproxy.pid)", the haproxy.log > shows the info below.  The 1st line of log sho

Re: PATCH/CLEANUP: log

2017-09-21 Thread Willy Tarreau
od enough. Just a few comments (I always have comments ;-)) > Kind regards. > From 4c694b4ff20a6ec88bc73c51a93c23de3f781c01 Mon Sep 17 00:00:00 2001 > From: David Carlier > Date: Thu, 21 Sep 2017 14:36:43 +0000 > Subject: [PATCH] CLEANUP: log Please be a bit more indicative on

Re: PATCH/CLEANUP: log

2017-09-21 Thread David CARLIER
rom 4c694b4ff20a6ec88bc73c51a93c23de3f781c01 Mon Sep 17 00:00:00 2001 > > From: David Carlier > > Date: Thu, 21 Sep 2017 14:36:43 + > > Subject: [PATCH] CLEANUP: log > > Please be a bit more indicative on the subject line so that when we work > on backports to -stable

Re: PATCH/CLEANUP: log

2017-09-21 Thread Willy Tarreau
On Thu, Sep 21, 2017 at 04:41:55PM +0100, David CARLIER wrote: > There are valid points especially about possible usage in memprintf :-) Thanks, now merged. Willy

custom log format question

2014-03-28 Thread David Birdsong
Could I get more clarification on "%ms" or "accept date milliseconds"? I'm not sure what that phrase means. Is it simply the number of milliseconds after the timestamp? Is this a valid use of that field? %Ts.%ms ...can I add it to the timestamp to get more precise log time?

write to log file

2022-04-12 Thread Henning Svane
Hi My configuration do not do what I thought it should do, so I would like to debug it. Old school with "print" commands of acl's, but I cannot find a method to do that. Is it possible and if so what is the command. Regards Henning

Haproxy 1.7.11 log problems

2019-11-20 Thread Alexander Kasantsev
Content-Type len 200 capture request header Cookie len 300 log-format %[capture.req.hdr(0),lower]\ %ci\ -\ [%t]\ \"%HM\ %HP\ %HV\"\ %ST\ \"%[capture.req.hdr(3)]\"\ %U\ \"%[capture.req.hdr(1)]\"\ \"%[capture.req.hdr(2)]\"\ \"%[capture.req.hdr(4)

Log lines in 2.0

2020-02-26 Thread Igor Cicimov
Hi, I have an HTTP frontend running on specific PORT for the purpose of external health checks, so typical: mode http option httplog I noticed the log lines though for haproxy v2.0.13 I installed from the usual Ubuntu PPA from Vincent: # haproxy -v HA-Proxy version 2.0.13-1ppa1~bionic

Re: Log Backend call

2020-04-18 Thread Aleksandar Lazic
I have created a issue for this. https://github.com/haproxy/haproxy/issues/589 On 19.04.20 00:15, Aleksandar Lazic wrote: > Hi. > > I haven't seen any option to log the request after the `http-request set-... > ` phase. > > Is this covered in %HP or is this the

[PATCH] BUG/MINOR: thread: log: Log buffers allocated twice by main, thread.

2018-07-11 Thread Frederic Lecaille
200 Subject: [PATCH] BUG/MINOR: thread: log: Log buffers allocated twice. This issue has been reported by Ilya Shipitsin when running reg tests with asan (address sanitizer). asan detects that the logging buffers have been allocated twice by the main thread, the first calling directly init_log_buffer(),

[PATCH 2/2] MEDIUM: log: add a new log format flag "E"

2016-02-12 Thread Dragan Dosen
The +E mode escapes characters '"', '\' and ']' with '\' as prefix. It mostly makes sense to use it in the RFC5424 structured-data log formats. Example: log-format-sd %{+Q,+E}o\ [exampleSDID@1234\ header=%[capture.req.hdr(0)]] --- doc/configuration

Re: [PATCH] Add log-format variable %HQ, to log HTTP query strings

2015-07-31 Thread Phillip Decker
< andrew.haywo...@getbraintree.com> wrote: > Since this came up in another thread, it seems reasonable to add a > patch that implements %HQ as a log-format variable to record the HTTP > query string. Leaving the initial '?' is intentional, but I don't feel

Re: [PATCH] Add log-format variable %HQ, to log HTTP query strings

2015-08-02 Thread Aleksandar Lazic
Hi Andrew. Am 31-07-2015 18:21, schrieb Andrew Hayworth: Since this came up in another thread, it seems reasonable to add a patch that implements %HQ as a log-format variable to record the HTTP query string. Leaving the initial '?' is intentional, but I don't feel strongly one

Re: [PATCH] Add log-format variable %HQ, to log HTTP query strings

2015-08-03 Thread Willy Tarreau
Hi Aleks, On Sun, Aug 02, 2015 at 06:55:26PM +0200, Aleksandar Lazic wrote: > Hi Andrew. > > Am 31-07-2015 18:21, schrieb Andrew Hayworth: > >Since this came up in another thread, it seems reasonable to add a > >patch that implements %HQ as a log-format variable to rec

Re: [PATCH] Add log-format variable %HQ, to log HTTP query strings

2015-08-04 Thread Andrew Hayworth
Hayworth >From 63b0af8420b22376dba3bfd8d367ff9a12261edf Mon Sep 17 00:00:00 2001 From: Andrew Hayworth Date: Fri, 31 Jul 2015 16:14:16 + Subject: [PATCH] Add log-format variable %HQ, to log HTTP query strings Since sample fetches are not always available in the response phase, this patch i

Re: [PATCH] Add log-format variable %HQ, to log HTTP query strings

2015-08-09 Thread Willy Tarreau
Hi Andrew, On Tue, Aug 04, 2015 at 11:42:06AM -0500, Andrew Hayworth wrote: > Thanks for the feedback. I moved the string-scanning bit, but did not > use the find_param_list function. Updated patch is attached. Patch merged, thanks! Willy

Re: [PATCH] CLEANUP: log: deinitialization of the log buffer in one function

2024-01-29 Thread Willy Tarreau
Hi Miroslav, On Tue, Jan 30, 2024 at 03:42:20AM +0100, Miroslav Zagorac wrote: > Hello all, > > In several places in the source, there was the same block of code that was > used to deinitialize the log buffer. There were even two functions that > did this, but they were calle

Re: [PATCH] BUG/MINOR: thread: log: Log buffers allocated twice by main, thread.

2018-07-11 Thread Christopher Faulet
it twice. The first time, with the default value for global.max_syslog_len, to allow logging during the configuration parsing. The second time, after the configuration parsing to eventually resize the log buffers using the right value for global.max_syslog_len (deduced from the configuration

[PATCH] BUG/MINOR: log: fix a typo that would cause %HP to log

2016-04-25 Thread Nenad Merdanovic
Typo was introduced in 57bc891 ("BUG/MEDIUM: log: fix risk of segfault when logging HTTP fields in TCP mode") which inverted the condition in the test and caused to be logged when using %HP. Signed-off-by: Nenad Merdanovic --- src/log.c | 2 +- 1 file changed, 1 insertion(+),

[SPAM] Re: [PATCH] Add log-format variable %HQ, to log HTTP query strings

2015-08-02 Thread Aleksandar Lazic
irect_rule() Cheers Aleks Am 02-08-2015 18:55, schrieb Aleksandar Lazic: Hi Andrew. Am 31-07-2015 18:21, schrieb Andrew Hayworth: Since this came up in another thread, it seems reasonable to add a patch that implements %HQ as a log-format variable to record the HTTP query string. Leaving the init

[SPAM] Re: [PATCH] Add log-format variable %HQ, to log HTTP query strings

2015-10-01 Thread jimmy1974
Hey guy, LEDlight International Industrial Limited here,exporting LED lights.There are a lot of program code.web:www.ledlightmake.com Call me,let's talk details. Rgds, jimmy

confused by HAProxy log line

2018-10-11 Thread Michał Pasierb
Hello, I have a problem understanding a particular log line from HAProxy 1.7.11 in production system. My clients report problems from time to time. They make another request and all is OK. This is the log format used: log-format %tr\ %ci:%cp\ %ft\ %b/%s\ %TR/%Tw/%Tc/%Tr/%Ta\ %ST\ %B\ %CC\ %CS

RFC uuid for log-format

2019-09-03 Thread Schimweg, Luca
Hey, for one use case I have, I would need a variable like %uuid in log-formats, which just generates a random UUID. The use-case would be, to be able to set the unique-id-format to this uuid, so that we can have a random uuid set as request-id for any incoming request. Right now, it’s quite

Log Errors on Loaded HAProxy

2009-02-22 Thread Robert Simmons
Hello All I am currently seeing errors on the console when a HAProxy instance passes 15,000 concurrent connections when the firewall is on. HAProxy is configured to send info level syslogs to a remote syslog server, and I successfully receive the startup syslog whether the firewall is up

Re: TCP log format question

2009-08-26 Thread Willy Tarreau
Hello, On Wed, Aug 26, 2009 at 06:24:16PM +0400, Dmitry Sivachenko wrote: > Hello! > > I am running haproxy-1.4-dev2 with the following > configuration (excerpt): > > global > log /var/run/loglocal0 > user www > group www > d

Re: TCP log format question

2009-08-27 Thread Dmitry Sivachenko
On Thu, Aug 27, 2009 at 06:39:51AM +0200, Willy Tarreau wrote: > I'm seeing that you have both "tcplog" and "httplog". Since they > both add a set of flags, the union of both is enabled which means > httplog to me. I should add a check for this so that tcplog di

Re: TCP log format question

2009-08-28 Thread Dmitry Sivachenko
> On Thu, Aug 27, 2009 at 06:39:51AM +0200, Willy Tarreau wrote: > Hmmm dontlog-normal only works in HTTP mode. > BTW, the manual explicitly states that 'option dontlog-normal' works in TCP mode. See section 8.2.2 "TCP Log format": # Successful c

Re: Log level error/warning

2010-02-04 Thread XANi
Dnia 2010-02-04, czw o godzinie 14:52 +0100, Reynier Serge pisze: > Bonjour, > > j'ai mis un haproxy en place pour des connexions MySQL et j'aimerai > loguer seulement les erreurs et warning de haproxy visible sur la page > de stats. Le mode de log est donc tcplog

Re: Log level error/warning

2010-02-06 Thread Willy Tarreau
haproxy visible sur la page > de stats. Le mode de log est donc tcplog, voici un extrait de mon > fichier de conf : > > listen MySQL x.x.x.x:3306 >mode tcp >option tcplog > option dontlog-normal > no option log-separate-errors >

Re: Log level error/warning

2010-02-10 Thread Reynier Serge
y visible sur la page de stats. Le mode de log est donc tcplog, voici un extrait de mon fichier de conf : listen MySQL x.x.x.x:3306 mode tcp option tcplog option dontlog-normal no option log-separate-errors log 127.0.0.1 local0 debug # option tcpka

Statistics in log facility local0

2010-02-11 Thread gustavo.jimenez
Hello i am use haproxy-1.3.23 on solaris-sparc, my problem is that i need the statistic information about timestamped display of each connection, disconnection, balanced transactions,source and destination is wirtten in the logs(haproxy.log) by the facilities(e.g local0). i can see that debug mode

Re: where is haproxy log?

2010-05-16 Thread Willy Tarreau
On Sun, May 16, 2010 at 11:08:23PM -0300, Bruno Guimarães Sousa wrote: > Hi everyone, > using debian squeeze here. > I installed haproxy through aptitude. > Executing "/etc/init.d/haproxy start" doesn't starts haproxy process and I > can't see a log anywhere. w

Re: where is haproxy log?

2010-05-17 Thread Przemysław Konopczyński
W dniu 2010-05-17 04:08, Bruno Guimarães Sousa pisze: Hi everyone, using debian squeeze here. I installed haproxy through aptitude. Executing "/etc/init.d/haproxy start" doesn't starts haproxy process and I can't see a log anywhere. Where is the log? What can be happening

Re: where is haproxy log?

2010-05-17 Thread Guillaume Bourque
xy process and I can't see a log anywhere. Where is the log? What can be happening? regards, -- Bruno Guimarães Sousa www.ifba.edu.br <http://www.ifba.edu.br> PONTONET - DGTI - IFBA Ciência da Computação UFBA Registered Linux user #465914 -- Guillaume Bourque, B.Sc., c

Log parts of POST data ?

2010-11-26 Thread Damien Hardy
Hi there, Is there any chance that I could log a part of the data in a POST request. I want to do some asynchronous stats (with mongodb) against Http log files. getting GET parameters from uri is easy. But it's quite hard to get POST parameter (even the N first char for example). Haproxy is

Apache Compatible HAProxy Log Formatting?

2011-03-09 Thread Joel Krauska
Has anyone worked out a way to get HAProxy to output logging in an Apache "Combined Log Format"? Most log analysis tools out there already speak Apache log format and I was hoping to avoid writing a parser for what is essentially mostly the same information. Anyone got a work

Parsing haproxy log files (python)

2011-03-18 Thread Roy Smith
Before I reinvent the wheel, has anybody already written code to parse haproxy log messages with Python?

Re: log error in 1.5

2011-03-27 Thread Willy Tarreau
On Sun, Mar 27, 2011 at 06:47:26AM -0700, Johannes Smith wrote: > I noticed differences in the log of version 1.4 and 1.5-dev4 regarding the > number of retries: >   > 1.4: NAME1 NAME2/ -1/-1/-1/-1/10521 400 187 - - CR-- 18/5/0/0/0 0/0 > {||} > "" > 1.5: NAME1 N

Re: log error in 1.5

2011-03-27 Thread Willy Tarreau
On Sun, Mar 27, 2011 at 07:05:00PM +0200, Willy Tarreau wrote: > On Sun, Mar 27, 2011 at 06:47:26AM -0700, Johannes Smith wrote: > > I noticed differences in the log of version 1.4 and 1.5-dev4 regarding the > > number of retries: > >   > > 1.4: NAME1 NAME2/ -1/-1/-1/-

Re: Apache error log problem

2011-04-07 Thread John Helliwell
On 7 April 2011 19:44, Greg Connolly wrote: > I’m having an issue getting the apache error logs to receive the client > ip’s. the proxy ip is the only one showing up. I have the apache access log > working using the forward-for but not the error logs. Can anyone shed most > light i

Re: Apache error log problem

2011-04-07 Thread Guillaume Bourque
Hi Greg You won't be able to change apache error log format you can only change the acces log file if my memory is correct. Maybe John sugeestion of using mod_rpaf would work but I never tried it. Good luck ! 2011/4/7 Greg Connolly > I’m having an issue getting the apache error

Re: Apache error log problem

2011-04-07 Thread carlo flores
iting apache2: l:~# tail -f /var/log/apache2/error.log [Thu Apr 07 13:33:35 2011] [error] [client 77.211.205.178] File does not exist: /var/www/res/]||!o.support.htmlSerialize&&[1, [Thu Apr 07 13:34:59 2011] [error] [client 93.158.148.31] File does not exist: /var/www/drop_calc_v2/robots.tx

  1   2   3   4   5   6   >