2

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?

EdwardTeach
  • 632
  • 9
  • 20

1 Answers1

0

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

<patterns>
  <pattern>
</pattern>
</patterns>
Sam Cogan
  • 38,736
  • 6
  • 78
  • 114