-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I use syslog-ng as a central logserver for 90 Linux Servers und 150 Network machines (router switches) I have to write a filter for matching hosts: The Filter looks like this: filter f_network { host("^ch4-*") or host("^bu.1-*"); }; but this filter does not match this lines: Oct 26 14:04:16 bu21-flur2-c3548-1 197791: %LINEPROTO-5-UPDOWN Oct 26 14:24:10 bu19-r151-c3548-3 32761: %LINEPROTO-5-UPDOWN Question: waht ist the right regex to match the hostnames: bu21-flur2-c3548-1 bu19-r151-c3548-3 pleace give me some tipps, thx - -- Mit freundlichen Grüßen / With regards Stefan Schluppeck Bauer Publishinggroup - Brieffach 6200 - Burchard.11 - D-20077 Hamburg Publishing Support Center - Server & Development - Stefan Schluppeck Fon:+49-40-3019-5519 - Fax:+49-40-3019-5668 - eMail:sschluppeck@hbv.de ~ <°)))))>< ><)))))°> <°)))))>< ><)))))°> <°)))))>< ><)))))°> PGP-Fingerabdruck = 7DC1 E4B4 056C 5380 8C68 4B5F 5E87 227D 5632 E45F Key-ID = 81B7CD29 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBfkP5XocifVYy5F8RAhyGAJ9c2ysTKQ9ihX9tgYTjgoJai+t6GQCgldk3 NBOaJFgZxnhSvQU9vrzWlNo= =bRz8 -----END PGP SIGNATURE-----
participants (1)
-
Stefan Schluppeck