Open keremcankabadayi opened 6 years ago
Do you mean "wordtwo in addition to wordone" or do you mean "wordone or wordtwo"? You can do both with Trigger Agent but it's easier to explain the one you need first to keep it from getting confusing.
word1 or word2
what i'm trying here. actually, i wanna know [word1 and word2
or word3 and word4
]
Okay. With Trigger Agent, by default it will only fire if all of the configured rules match. For the former case, just put your regex rules in a single Trigger Agent in separate rules, and that'll do what you want. For the latter case I recommend two Trigger Agents in Parallel (word1 AND word2, word3 AND word4) with both feed into a Deduplication Agent so that you only get one copy of the event you want.
A simple OR
can also be handled with must_match = 1
, configure two rules for the words you are looking for and the Agent will trigger if either of the two rules matches. The AND
has to be done in the two regular expressions though.
so, i couldn't figure my configuration out. I tried some but it didn't work. how should it be?
What did you try and what did not work? 😄
hey!
i have some rss events. i'm trying to use
TriggerAgent
my TriggerAgent looks like:
and my event:
my goal is captured a word from {{title}} or {{content}} in the event. and extra question is that how i'm gonna add another word in the regex value? like
*\\/wordone | wordtwo\\/.*
?