I'm trying to construct a trigger that fires only when a logfile has 10 matching entries within a 600 second period. My initial trigger looks like this:
{Offer:log[/data/logs/paster.log,@pasterLog].str(Functional dependency violoation)}=1
the @pasterLog contains numerous matches, I'm trying to just trigger on "Functional dependency violoation", this works fine. But the trigger fires every time it sees this string, and I want it to only fire if it sees this string 10 times in 10 minutes. Really I want to be able to pass the results from the str() function into count(600,1), is it possible to do this at all, string multiple functions together in a single trigger?
{Offer:log[/data/logs/paster.log,@pasterLog].str(Functional dependency violoation)}=1
the @pasterLog contains numerous matches, I'm trying to just trigger on "Functional dependency violoation", this works fine. But the trigger fires every time it sees this string, and I want it to only fire if it sees this string 10 times in 10 minutes. Really I want to be able to pass the results from the str() function into count(600,1), is it possible to do this at all, string multiple functions together in a single trigger?
Comment