HAProxy community

Haproxy Logs are being written in two files with rsyslog config

I have a haproxy and rsyslog setup, I’m facing issue that haproxy logs are being written in 2 files /var/log/messages and /var/log/haproxy.log(I need this to be written only in this file)

Haproxy:
version - 2.0
haproxy config -> Has log global in all frontends

rsyslog:
version - 5.8.10

part of content in /etc/rsyslog.conf is below

*.info;mail.none;authpriv.none;cron.none        /var/log/messages

/etc/rsyslog.d/49-haproxy.conf content is:

$UDPServerAddress 127.0.0.1
$UDPServerRun 514
local1.* -/var/log/haproxy.log
& ~