haproxy日志

haproxy日志级别有tcp、http两种。

tcp日志

Aug 13 12:15:19 localhost haproxy[12520]: 172.22.16.44:39008 [13/Aug/2019:12:15:19.755] assterisk assterisk/<NOSRV> -1/-1/0 0 -- 2/2/1/0/5 0/0
Aug 13 12:15:19 localhost haproxy[12520]: 172.22.16.44:39008 [13/Aug/2019:12:15:19.755] assterisk assterisk/<NOSRV> -1/-1/0 0 -- 2/2/1/0/5 0/0

http格式日志

Aug 13 11:57:04 localhost haproxy[12520]: 172.22.224.202:63603 [13/Aug/2019:11:57:04.638] stats stats/<STATS> 0/0/0/0/1 200 17060 - - LR-- 2/2/0/0/0 0/0 "GET
/stats HTTP/1.1"