There's an easy way to do this, but darned if I remember exactly how and
google isn't helping.
I think you can do
evt.summary.search("c", "abcdef")
or at least use search to match?
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University
ianw1974 wrote, On 7/21/2009 5:12 AM:
> I'm having a problem trying to write a transform. What I want to know is
> what would be the "contain" operator.
>
> This is what I have:
>
>
> Code:
> if evt.summary == 'snmp trap 1.3.6.1.4.1.3224.0.500' or evt.summary
> "contains" 'last message repeated' and evt.severity != 0: evt.severity = 0
>
>
>
> you'll see I've put "contains" in the query above, so I wanted the correct
> item. I did try =~ which is the usual regex for a contains query but it
> doesn't work since the whole transform turns red showing an error.
>
> I'm just trying to remove the logs that show "last message repeated 14 times"
> or however many time they are noted.
>
>
>
>
> -------------------- m2f --------------------
>
> Read this topic online here:
> http://forums.zenoss.com/viewtopic.php?p=37137#37137
>
> -------------------- m2f --------------------
>
>
>
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users