Welcome! Log In Create A New Profile

Advanced

upd logging

Posted by Vladimír Houba ml. 
Vladimír Houba ml.
upd logging
April 20, 2017 12:10PM
Hello,

the usual setup for haproxy logging is using an udp. Though, this comes
with the risk of dropped datagrams. It is very difficult to figure out a
dropped packet. I think that it would be nice if each message could have a
counter that would make it possible to detect that some messages were
dropped.

Thank you

--
S pozdravom / Best regards
Vladimír Houba jr.
Prosoft http://www.prosoft.sk, Slovakia
+421 915 708 171
Willy Tarreau
Re: upd logging
April 21, 2017 07:30AM
Hello Vladimir,

On Thu, Apr 20, 2017 at 11:58:32AM +0200, Vladimír Houba ml. wrote:
> Hello,
>
> the usual setup for haproxy logging is using an udp. Though, this comes
> with the risk of dropped datagrams. It is very difficult to figure out a
> dropped packet. I think that it would be nice if each message could have a
> counter that would make it possible to detect that some messages were
> dropped.

You can do it by putting "%lc" in your log format. It's the frontend's
log counter, it was designed exactly for this use case. There is also
"%rt" which is the global request counter, sometimes more suited if
you have multiple frontends and you don't want to count per-frontend.

Willy
Sorry, only registered users may post in this forum.

Click here to login