[syslog-ng]host x.x.x.111 is the same as x.x.x.11 (filter error?)

Chad Walstrom chewie@wookimus.net
Tue, 2 Jul 2002 10:25:38 -0500


--pvezYHf7grwyp3Bc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jul 02, 2002 at 07:18:34AM -0700, Lubos Vitek wrote:
> Hallo,=20
>=20
> I have found a bug (or a feature?) in the syslog-ng
> daemon. I used a filter:
>=20
> filter f_host11  { host("192.168.1.11"); };
> filter f_host111 { host("192.168.1.111"); };
>=20
> destination d_host11 {file("/var/log/other/11.log");};
> destination d_host111
> {file("/var/log/other/111.log");};
>=20
> log{source(s_other);filter(f_host11);destination(d_host11);};
> log{source(s_other);filter(f_host111);destination(d_host111);};
>=20
> Then, when I try to log something on 192.168.1.111, I
> receive a log record in both files: 111.log and 11.log
> too ! What am I doing wrong ?

Have you tried listing the "log" line for f_host111 first?

--=20
Chad Walstrom <chewie@wookimus.net>                 | a.k.a. ^chewie
http://www.wookimus.net/                            | s.k.a. gunnarr

--pvezYHf7grwyp3Bc
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9IcXyDMcLGCBsWv0RAv3GAJ99Q6wCtVrraPDxHpEnoY4+wYBQ7gCgjubB
gCTCfS/hMrCigH0CyxjFaAI=
=S3A7
-----END PGP SIGNATURE-----

--pvezYHf7grwyp3Bc--