Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I receive kernel traces in my logs, the last line is empty. I'd like to filter/ignore these empty kernel messages using syslog-ng and patterndb. Here is the pattern I have so far that is not matching empty:

  <rule class='system' id='kernel_empty' provider='local'>

How do I exclude these empty kernel messages?

share|improve this question
up vote 0 down vote accepted

try to add an empty line (or a line-break) to the pattern. For example,

share|improve this answer
You'll have to wrap XML tags in a {code} block, or the system will hide it :) – adaptr Dec 21 '11 at 13:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.