Remi,

On 7/7/21 4:43 PM, Remi Tricot-Le Breton wrote:
A quick recap of the topics raised by the multiple conversations had in this thread : - we won't used tabs as separators in order to remain consistent with the existing log format (especially since this new format will only be an extension of the HTTP one)
- the date format won't change right now, it is a whole new subject
- the logged lines will all have the same "date+process_name+pid" prefix as the already existing logs - the HTTP log format won't be touched yet, changing it would be a whole new subject as well


The log would then be as follows :


    >>> Jul  1 18:11:31 haproxy[143338]: 127.0.0.1:37740 [01/Jul/2021:18:11:31.517] \
           ssl_frontend~ ssl_frontend/s2 0/0/0/7/+7 200 2750 - - ---- \
           1/1/1/1/0 0/0 {1wt.eu} {} "GET /index.html HTTP/1.1 \
           0/0/0/0 TLSv1.3/TLS_AES_256_GCM_SHA384

*snip*

and the corresponding 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 \
*%[conn_err_code]/%[ssl_fc_hsk_err]/%[ssl_c_err]/%[ssl_c_ca_err]* \
*%sslv/%sslc*


Looks good to me, this is a natural extension of the existing format.

Best regards
Tim Düsterhus

Reply via email to