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)

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

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:

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