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

Jain, Vaibhav (GE Healthcare) Vaibhav.Jain at ge.com
Thu Sep 22 14:33:56 CEST 2011


Hi,

Thanks for your quick response. 
In my case logs are coming from one source machine. Let me know how to
put the filter condition for sharing the load.

Regards,
Vaibhav

-----Original Message-----
From: syslog-ng-bounces at lists.balabit.hu
[mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Gergely Nagy
Sent: Thursday, September 22, 2011 5:29 PM
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] Load balancing in syslog-ng(verison 3.0)

"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]

________________________________________________________________________
______
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation:
http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq



More information about the syslog-ng mailing list