[syslog-ng] main syslog-ng server needs to relay some logs

Gergely Nagy algernon at balabit.hu
Wed Apr 18 10:26:21 CEST 2012


Jerome Yanga <jerome.yanga at gmail.com> writes:

> Please be nice as I am still a newbee.  I was able to create a
> syslog-ng server that recieves syslogs from a number of servers.
> However, i would need to relay some logs from specific hosts to
> another syslog-ng server to make it available to others.  Can someone
> help me with a sample config?

Something along these lines should get you started:

source s_network { udp(); };
filter f_somehosts { host("somehost"); };
destination d_remote { udp("relayhost"); };
log {
 source(s_network);
 filter(f_somehosts);
 destination(d_remote);
};

-- 
|8]



More information about the syslog-ng mailing list