Hello,
For your consideration I wrote and tested a new a logging format that will allow tcp mode proxies to send logs that will adhere to clf (common log format). This will allow the sending of that data to servers that expect that format so it can be parsed but the connections will stand out as TCP.
To accomplish that I used this log-format string:log-format "%{+Q}o %{-Q}ci - - [%T] \"TCP \" 000 %B \"\" \"\" %cp %ms %ft %b %s %Th %Tw %Tc %Tt %U %ts-- %ac %fc %bc %sc %rc %sq %bq \"\" \"\" "
The HTTP request has been replaced with "TCP " and the response code has been hard coded to "000".
I also added a couple of very minor spacing changes. The patch file is attached.
0001-MEDIUM-Implements-new-log-format-of-option-tcplog-cl.patch
Description: Binary data