HTTP Logging in HAProxy 1.6.2 on RHEL 7.2


#1

Dear,
can you please guide me with exact configuration to enable http logging for front-end and back-end.

global
maxconn 2000
chroot /etc/haproxy
log 127.0.0.1:514 local0 notice
daemon

above is my current configuration, when I use “strace -tt -s100 -etrace=sendmsg -p 46895”, i can see the log, but could not locate any log files. Am i missing anything?

Regards,
Vel


#2

So haproxy sends syslog messages to 127.0.0.1:514.

You will have to properly setup your syslog daemon to receive and log them.

I would again refer you to the OS documentation:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-Viewing_and_Managing_Log_Files.html


#3

Thanks, I will try this and let you know if any issues.