Difference between revisions of "Drop Events with Transforms"

From Zenoss Wiki
Jump to: navigation, search
(Created page with "This one is pretty simple to modify to your needs: <syntaxhighlight lang="python"> import re regex = re.compile('Text to match which will then be dropped') if re.match(reg...")
 
 
Line 1: Line 1:
 +
==Searching a Summary==
 
This one is pretty simple to modify to your needs:
 
This one is pretty simple to modify to your needs:
  

Latest revision as of 14:40, 22 November 2013

Searching a Summary

This one is pretty simple to modify to your needs:

 import re
 regex = re.compile('Text to match which will then be dropped')
 if re.match(regex, evt.summary):
     evt._action = "drop"