|
From: Don S. <don...@gm...> - 2005-01-06 22:44:56
|
Greetings: I'm trying to determine how to use the contains operator in a condition. I have a parameter that is a several word string. If it contains a certain word or words I want to create a new event. For example, I have an event parameter message: 06-14:33:13:643 !F! All Clear FAP08:838 (14:33) I have a condition that says "message contains All Clear". But it fails to evaluate true. I took a look at the source code and see that it is using the 'in' operator, which makes sense to me and it would seem that the above scenario should work. But it doesn't: 2005-01-06 14:46:32,815 - Debug 1 -> sys.engine.condition -> Evaluating parameter expression '[u'06-14:41:44:737 !F! All Clear FAP05:538 (14:41)'] contains [u'All']' 2005-01-06 14:46:32,817 - Debug 2 -> sys.engine.condition -> Evaluated to 0 2005-01-06 14:46:32,818 - Debug 1 -> sys.engine.condition -> Condition evaluation returned '0' Any ideas? Thanks, Don |