Score:1

Haproxy log format to mimic Common log format

cn flag

I would like to have haproxy log access using the same format as most webservers default, CLF or also known as NCSA Common log format.

Does anyone have documentation for doing this?

Score:2
cn flag

I found that haproxy supports this with the clf option

defaults
   mode http
   option httplog clf

equivalent to:

log-format "%{+Q}o %{-Q}ci - - [%trg] %r %ST %B \"\" \"\" %cp \
            %ms %ft %b %s %TR %Tw %Tc %Tr %Ta %tsc %ac %fc \
            %bc %sc %rc %sq %bq %CC %CS %hrl %hsl"

and the source is https://www.haproxy.com/documentation/hapee/latest/observability/logging/log-formats/#clf-option

Ahmad Ahmadi avatar
ca flag
The word "Enterprise" in the doc header confused me when I hit that page before you mention it in your answer :)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.