[syslog-ng]Network masks

Balazs Scheidler syslog-ng@lists.balabit.hu
Fri, 06 Feb 2004 18:21:19 +0100


On Fri, 2004-02-06 at 10:42, Henning Markussen wrote:
> Hi
> 
> We use syslog-ng - and it is a cool tool.
> 
> But we have a lot of systems that need to log to our syslog-ng server, and 
> they don't
> all have to log into there own file
> 
> Is it possible to make a host mask that matches ex. 10.1.1.0/28 or 
> 10.1.1.130/28 ?
> 
> The goal is to filter all 10.1.1.0/28 into one file 
> and 10.1.1.130/28 into another file.

you can use the netmask() filter.

filter f_nm { netmask('10.1.1.0/28'); };

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1