In this situation, Local log works correctly and log file updates in /var/log/. Also syslog works correctly.
When we want use “log-send-hostname” config and uncomment it, The local log in /var/log/ stop updating and nothing inserts in it. Syslog works correctly and hostname inserts in log, as we configure it.
p.s: log-send-hostname config, send hostname (hostname of linux machine which HAPrioxy installed on it) to syslog server. this is important to us because multiple machines send logs to syslog server.
Thanks lukastribus for your kind response.
I have two machine for test this issue. one of them has “hap1” as hostname, and the other has “lb-hap-1” as host name. We have problem on both machines. When we set “log-send-hostname” config on haproxy.conf, local log stop working.