]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: log: report SSL ciphers and version in logs using logformat %sslc/%sslv
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Oct 2012 18:17:54 +0000 (20:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Oct 2012 18:48:51 +0000 (20:48 +0200)
commitffc3fcd6dadbf19c3def3f8aa27e78cf2481c347
tree80674161a343a386c7d40b859a309b72c874688e
parent4f65356a228cca8ebfc966b3d0eb28b6b72c94e5
MEDIUM: log: report SSL ciphers and version in logs using logformat %sslc/%sslv

These two new log-format tags report the SSL protocol version (%sslv) and the
SSL ciphers (%sslc) used for the connection with the client. For instance, to
append these information just after the client's IP/port address information
on an HTTP log line, use the following configuration :

    log-format %Ci:%Cp\ %sslv:%sslc\ [%t]\ %ft\ %b/%s\ %Tq/%Tw/%Tc/%Tr/%Tt\ %st\ %B\ %cc\ \ %cs\ %tsc\ %ac/%fc/%bc/%sc/%rc\ %sq/%bq\ %hr\ %hs\ %{+Q}r

It will report a line such as the following one :

    Oct 12 20:47:30 haproxy[9643]: 127.0.0.1:43602 TLSv1:AES-SHA [12/Oct/2012:20:47:30.303] stick2~ stick2/s1 7/0/12/0/19 200 145 - - ---- 0/0/0/0/0 0/0 "GET /?t=0 HTTP/1.0"
doc/configuration.txt
include/proto/ssl_sock.h
include/types/log.h
src/log.c
src/ssl_sock.c