[syslog-ng] Load balancing in syslog-ng(verison 3.0)

Gergely Nagy algernon at balabit.hu
Thu Sep 22 13:59:17 CEST 2011


"Jain, Vaibhav (GE Healthcare)" <Vaibhav.Jain at ge.com> writes:

> In my syslog-ng server configuration file I want to divide the
> messages in 2 different pipes to share the load. Please let me know

The simplest approach would be to filter the messages, based on a
condition that would evenly distribute them (what such a condition is,
depends on your logs, and it may not even exist), and send them towards
different destinations.

For example, assuming you have two client hosts, src1 and src2, and two
destinations: dst1, and dst2, your config could look like this:

source s_network { tcp(); };
destination d_dst1 { tcp("dst1.local"); };
destination d_dst2 { tcp("dst2.local"); };

filter f_host1 { host("src1"); };

log { source(s_network); filter(f_host1); destination(d_dst1);
flags(final); };
log { source(s_network); destination(d_dst2); };

-- 
|8]



More information about the syslog-ng mailing list