Why the HAProxy don't is logging the connections

How I do to HAProxy starts to logging msg in syslog or another file?
I would like to know the origins of the connections and how this data traffic is being handled :head_bandage:
I’m using HAprxy 1.5.4 on a CentOS 6.8

My haproxy.cfg like it:
global
log 127.0.0.1 local2

defaults
mode http
log global
option httplog

frontend main
bind *:13095 ssl crt /etc/ssl/certs/private/192.168.242.60.pem
option httplog
log global
reqadd X-Forwarded-Proto:\ https
default_backend main

Thanks all for your reply.

Do you have a running syslog server on 127.0.0.1?

No, how do I do that?

That’s not really haproxy related, consult your OS documentation or research the topic elsewhere.

This looks like it could be interesting for your, but please understand that we are unable to give OS support here:

add three lines in defaults section in haproxy:
option httplog
option log-health-checks
log /dev/log local6
that would generate the syslog in /var/log/meesages…kindly serach it with time in this file systems.
you may also redirect this log to syslog server [both would be same log]. But syslog has very limited number of log would be generated like health check and socket connectivity. If you need to generate log at high level you would need to enable debug log in haproxy and need to compile the source code and run in same folder as : # ./haproxy -f /etc/haproxy/haproxy.cfg -d [-d is for debug msg to be printed on local]. you may redirect log in file as well. for high level log, you may enable trace log too…I think for connection level debug log is sufficient.