[prev in list] [next in list] [prev in thread] [next in thread]
List: syslog-ng
Subject: Re: [syslog-ng]match to an empty messages line
From: Balazs Scheidler <bazsi () balabit ! hu>
Date: 2005-04-12 14:55:08
Message-ID: 1113317708.3954.76.camel () bzorp ! balabit
[Download RAW message or body]
On Tue, 2005-04-12 at 15:25 +0200, Stephan Hendl wrote:
> Hi all,
>
> recently I included fibrechannel switches in my central syslog-ng. The switches \
> often send empty line among important lines. I want to drop the empty ones. How can \
> I achieve that by means of filter rules?
syslog-ng drops really empty lines, probably it still contains
something, at least a timestamp.
you can match empty messages using:
filter f_empty { match("^$"); };
however you might still have some spaces in that in which case it
becomes:
filter f_empty { match("^ *$"); };
--
Bazsi
_______________________________________________
syslog-ng maillist - syslog-ng@lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic