[PATCH] ability to override the syslog tag

From: Kevinm <kevinmusker#gmail.com>
Date: Wed, 22 Dec 2010 16:08:21 +0000


Hi,

The company I work for are beginning to use haproxy to balance our external services. We have traditionally used mod_proxy_balancer in apache, but have had issues with virtual hosts and restarts.

One of the requirements we have is to run multiple instances of haproxy on a single host; this is so that we can split the responsibilities (and change permissions) between product teams. An issue we ran up against is how we would distinguish between the logs generated by each instance. The solution we came up with (please let me know if there is a better way) is to override the application tag written to syslog. We can then configure syslog to write these to different files.

I have attached a patch adding a global option 'logname' to override the default syslog tag 'haproxy' (actually defaults to argv[0]). The patch is against release 1.4.10. It is fairly simple, but if you'd like a patch against the current HEAD, please let me know.

Thanks,

Kevin.

Received on 2010/12/22 17:08

This archive was generated by hypermail 2.2.0 : 2010/12/22 17:15 CET