[syslog-ng] forwarding to server

Geller, Sandor (IT) Sandor.Geller at morganstanley.com
Tue Aug 28 14:59:36 CEST 2007


Hello,

> Here is the section of the conf file I think you are referring to: 
> #source my_src { .... };
> #
> source src {
>     #
>     # include internal syslog-ng messages
>     # note: the internal() soure is required!
>     #
>     internal();
> 
>     #
>     # the following line will be replaced by the 
>     # socket list generated by SuSEconfig using
>     # variables from /etc/sysconfig/syslog:
>     #
>     unix-dgram("/dev/log");
> 
>     #
>     # uncomment to process log messages from network:
>     #
>     udp(ip("192.168.x.x") port(514));
> };

This is the source, not the destination declaration. You can
use only IP addresses bound to the box itself, not remote ones.

What you want to achieve is defining a remote destination like:

destination d_remotehost {
	udp("192.168.x.x" port(514));
};

And then refer to this destination in your log statements.

Regards,

Sandor
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.


More information about the syslog-ng mailing list