Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4718

One frontend, logs with and without logasap

$
0
0

Hello everyone,

I am using haproxy for TCP workload and am looking into improving my logging setup. The connection duration of clients is very diverse. In the usual case, connections are kept open for a few minutes, but in some cases clients keep them open for days.

I use the TCP log format which provides an excellent set of information, but only after the connection is terminated and that is unhandy for the connections that are kept live for an extremly long time. I am aware of option logasap, but if I configure it for the frontend I loose some of the timer information.

What I would like is both: An early log message (like with logasap) that tells me that a connection has been established and then again a log message after it is terminated with all the detailed timers, etc. I do not care about the size of the log.

So far, I have read that I might be able to achieve this with another frontend/backend layer with different log settings, but I would prefer to keep my setting a simple as possible. Is it possible to configure a single frontend to emit logs with option logasap and then again after connection termination?

Thanks and best regards
Joerg

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4718

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>