Editing Filter Causes Hundreds of Emails and SMS

Forum for questions and support relating to the 1.29.x releases only.
Locked
jamesb
Posts: 14
Joined: Sat Feb 27, 2016 10:07 am

Editing Filter Causes Hundreds of Emails and SMS

Post by jamesb »

Hi,

I have a 1.29 installation and can't seem to edit filters without them running on against all existing events.

I open the filter dialog, change something like the "alarms frames" for example and click save. This launches the "save filter" window which I leave as-is; with the "save as" field the same and keep "Run filter in background" checked.

When I click save the filter appears to run against all existing events instead of only new events and I get a mailbox full of X emails and a phone full of X SMS.

What am I doing wrong?
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Editing Filter Causes Hundreds of Emails and SMS

Post by bbunge »

Well, it would be great to see what settings you used in your filter...
jamesb
Posts: 14
Joined: Sat Feb 27, 2016 10:07 am

Re: Editing Filter Causes Hundreds of Emails and SMS

Post by jamesb »

A background filter with the following settings:

Code: Select all

Monitor Name - Matches - Sheds
AND
Alarm Frames - Greater than or equal to - 30

"Email details of all matches" checked
I click "save" but it seems to do what I would expect from "Execute"
mikb
Posts: 674
Joined: Mon Mar 25, 2013 12:34 pm

Re: Editing Filter Causes Hundreds of Emails and SMS

Post by mikb »

"the filter appears to run against all existing events"

It will. That's what you asked for. It's not what you wanted though ...

If you were under the impression that filters are run only against each new incoming event, then that's the mis-step in the plan.

You will need to do some adding to the rule, to bring time/date into it to control the "when" part of your rule.

Secondly: Hitting "Save" and running it in the background *will* cause it to execute. That's what background running is for. What were you expecting to happen differently?

Try testing to see how many events match using "Submit" (show me what you WOULD effect, but don't do anything) instead of "Execute" (OK, do that NOW) or "Save&Background" (OK, keep doing this in the background forever)
jamesb
Posts: 14
Joined: Sat Feb 27, 2016 10:07 am

Re: Editing Filter Causes Hundreds of Emails and SMS

Post by jamesb »

HI,

I want my filter to run the background forever and process each event as it is raised which it does seems to do once it has done one pass of all existing events. I was expecting it to keep track of those events it has already processed even after a filter is modified and continue with the next unprocessed event.

So I need to increment a date/time condition each time I modify the filter? Is this the best way to go about it?
Locked