[syslog-ng] Log only one host

Sandor Geller Sandor.Geller at morganstanley.com
Fri Dec 9 11:01:20 CET 2011


Hi,

On Fri, Dec 9, 2011 at 10:29 AM, Tokie <tokie at tiscali.it> wrote:
> Hi to all,
> my question is very simple:
> How do I to log only one a specific ip address??
> I tried filtering with the Host, Host_From, SOURCEIP, etc without any
> positive result.
>
> What is the correct syntax?
> Could you help me??

Try using the netmask filter.

filter f_host_a_b_c_d {
  netmask("a.b.c.d/32");
};

Regards,

Sandor


More information about the syslog-ng mailing list