[syslog-ng] Multiple Interface interaction with syslogng
Gergely Nagy
algernon at balabit.hu
Fri May 27 17:44:24 CEST 2011
Pramod Pillai <pramodpillaip at gmail.com> writes:
> I am using Solaris box which has multiple IP interface cards. When I
> run syslogng client ( instance ) it picks up one of the available IP
> for use.
> I want the syslogng to pick up the IP which I want. By this way on the
> syslong-ng server I will have the correct IP address.
> EX:
> The box has following IP address.
> 10.232.1.1
> 10.232.1.2
> 10.232.1.3
> 10.232.1.4
>
> I want the syslogn-ng to pick up "10.232.1.3". There by the syslog-ng
> server instance will always print the source IP as "10.232.1.3"
If my memory serves me right, destinations have a localip() setting,
which you can use somewhat like this:
destination d_net {
tcp("remote-server"
localip("10.232.1.3")
);
};
Hope that helps!
--
|8]
More information about the syslog-ng
mailing list