Hi,
I’m struggling to get access and health check logs from haproxy when I run it inside a container, so I’ve followed the instructions in the docs (Setting up logs using Docker | HAProxy Enterprise 2.2r1) and my config looks like:
#---------------------------------------------------------------------
# Global settings
#---------------------------------------------------------------------
global
daemon
log stdout format raw local0
maxconn 4000
nbproc 1
nbthread 12
# turn on stats unix socket
# stats socket /var/lib/haproxy/stats
#---------------------------------------------------------------------
# common defaults that all the 'listen' and 'backend' sections will
# use if not designated in their block
#---------------------------------------------------------------------
defaults
timeout connect 10s
timeout check 10s
timeout client 60s
timeout server 60s
timeout queue 60s
timeout http-keep-alive 10s
maxconn 3000
log global
retries 3
frontend http_in
mode http
timeout http-request 10s
option http-keep-alive
option forwardfor
bind 192.16.1.103:80
use_backend http_be
backend http_be
mode http
option http-keep-alive
option forwardfor
option redispatch
balance roundrobin
server 192.16.1.6 192.16.1.6:80
server 192.16.1.5 192.16.1.5:80
But the only logs I sees in the kubernetes logs are then haproxy starts:
kubectl logs vcn1-lb1-78c4c86676-w4q2p
Proxy http_in started.
Proxy http_be started.
I’ve tried:
log stdout format raw local0 debug
log stderr format raw local0 debug
log stderr format raw local0
But nothing gives me access or health check log data?