@zied Thank you for reaching out to us. Researched on this query, I suspect that the challenge is that due to the HAproxy configuration, the events are not received by RSyslog on the agent in the original format. I suspect that configuration changes to HAproxy, or tweaking the RSyslog configuration would help or you can use a Nginx server as the load balancer to distribute the messages between servers.
Let me know if you have any further questions.