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'>
  <description></description>
    <patterns>
      <pattern></pattern>
    </patterns>
  </rule>

How do I exclude these empty kernel messages?

link|improve this question
feedback

1 Answer

up vote 0 down vote accepted

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

<patterns>
  <pattern>
</pattern>
</patterns>
link|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
feedback

Your Answer

 
or
required, but never shown

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