public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] syslog-ng filtering
@ 2010-03-16 23:22 Ralph Slooten
  2010-03-17  0:00 ` Roy Wright
  2010-03-17 10:39 ` Alan McKinnon
  0 siblings, 2 replies; 12+ messages in thread
From: Ralph Slooten @ 2010-03-16 23:22 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1154 bytes --]

Hi all,

Has anyone here worked out how to filter out syslog messages using syslog-ng
v3? The old syntax doesn't work (well complains bitterly about performance
and says to use regex), and no matter what I try I cannot get the new syntax
to work :-/ I have a syslog-ng server which logs to MySQL for multiple
clients in a network, however the database just keeps growing with
irrelevant data I'd prefer to just quietly ignore on the server side.

I'm trying to filter out (exclude) messages such as:
  (root) CMD (/root/bin/vmware-checker)
and
  (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )

==============
filter myfilter {
        not match("regex" value("\/usr\/sbin\/run-crons"))
        and not match("regex" value("vmware-checker"));
}
log {
        source(src);
        source(remote);
        filter(myfilter);
        destination(d_mysql);
};
===============

However they just keep coming through the filter (ie: not matching the "not
match" filter). I've tried escaping the slashes, not escaping them ... even
partial words, but I obviously am missing something somewhere.

Anyone have any ideas?

Thanks in advance,
Ralph

[-- Attachment #2: Type: text/html, Size: 1450 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-03-19  7:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-16 23:22 [gentoo-user] syslog-ng filtering Ralph Slooten
2010-03-17  0:00 ` Roy Wright
2010-03-17  2:49   ` Ralph Slooten
2010-03-17 10:48     ` Fred Leon
2010-03-17 10:39 ` Alan McKinnon
2010-03-17 11:12   ` [gentoo-user] " Robert Fekete
2010-03-17 20:16   ` [gentoo-user] " Ralph Slooten
2010-03-17 20:31     ` Alan McKinnon
2010-03-19  7:56       ` [gentoo-user] " Robert Fekete
2010-03-17 20:40     ` [gentoo-user] " Keith Dart
2010-03-17 21:43       ` Ralph Slooten
2010-03-18  6:39         ` Alan McKinnon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox