Hi,

We are using haproxy 1.6 and a custom log format with built-in variables like %HM, %HP, %HQ and %HV.

Is it possible to restrict or rewrite the length of certain variables? Especially %HQ (request query) may become very long in our environment which leads to haproxy cutting off the log at 1024 bytes I think. This is problematic, because our log parser misses important information then. We do not need the whole query string in the logs. The first few bytes would be fine.

One possible workaround could be to move the %HQ to the end of the log line. It gets automagically cut when it becomes too long, but the same issue may happen with %HP (request path) then.

Unfortunately I didn't find anything in the docs and badly failed while trying to output a variable that only contains the first few bytes of some specific fields (especially "path" and "query").

Best regards

Reply via email to