Am 24.05.2019 um 16:30 schrieb Moemen MHEDHBI: > > On 19/05/2019 00:28, Aleksandar Lazic wrote: >> Hi. >> >> I have the following setup
[snipp] >> What variable can I use for the log to see which protocol is used for the >> backend, as with htx the frontend can have different http proto then the >> backend? >> >> I haven't seen any variable in the custom log fields which reflects the >> backend >> protocol. >> https://cbonte.github.io/haproxy-dconv/1.9/configuration.html#8.2.4 >> >> Best regards >> Aleks > > Hey Aleksandar, > > Is "bc_http_major" what you are looking for? > https://cbonte.github.io/haproxy-dconv/1.9/configuration.html#7.3.3-bc_http_major > > But in this case it will be always http1 since there is no alpn > directive in the server line. > > Unless you're looking for the http protocol in the frontend side and > this can be fetched with fc_http_major. > > Anyway you can use the following log-line to see both: > > log-format "%ci:%cp [%tr] %ft %b/%s %TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC > %CS %tsc %ac/%fc/%bc/%sc/%rc %sq/%bq %hr %hs %{+Q}r > proto_frontend:%[fc_http_major] proto_backend:%[bc_http_major]" Thanks I have overseen it. Regards Aleks

