Event Filters Not Running

Forum for questions and support relating to the 1.28.x releases only.
AlexB
Posts: 18
Joined: Mon Aug 03, 2015 3:18 pm

Event Filters Not Running

Post by AlexB »

Hi, I'm trying to create a filter that purges unarchived events every 14 days, but the filter is not running after selecting it. It just goes back to the default "choose filter" option in the drop down. I've tried saving, executing, and submitting and none of them keep the filter, but maybe I'm just missing something simple. Any suggestions?

Thanks!
mikb
Posts: 704
Joined: Mon Mar 25, 2013 12:34 pm

Re: Event Filters Not Running

Post by mikb »

Did you "Save" after any changes you made, and did you tick/select "Run Filter In Background" which will keep it going?

"Execute", "Submit" only run the filter once (Submit: shows you what WOULD happen/what WOULD match, for fine tuning and experimenting, vs Execute: actual do it, but only ONCE, NOW).
AlexB
Posts: 18
Joined: Mon Aug 03, 2015 3:18 pm

Re: Event Filters Not Running

Post by AlexB »

Yeah, I did. The changes still revert back to default.
mikb
Posts: 704
Joined: Mon Mar 25, 2013 12:34 pm

Re: Event Filters Not Running

Post by mikb »

On the filters page, when you pick the filter, the display refreshes (hopefully) with the details, and should show what the filter's current settings are.

It should also have a little "*" at the enf of the filter name, and the word [background] after it. Just next to the selection box.

Code: Select all

Use Filter "NameOfFilter*" [background]
Are you getting any of that appearing?
AlexB
Posts: 18
Joined: Mon Aug 03, 2015 3:18 pm

Re: Event Filters Not Running

Post by AlexB »

Yep, then I hit save and then check "run filter in background" and click save and close.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Event Filters Not Running

Post by asker »

Would you mind posting a screenshot of the filter as it is configured which is not working?
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
AlexB
Posts: 18
Joined: Mon Aug 03, 2015 3:18 pm

Re: Event Filters Not Running

Post by AlexB »

Sorry, I tried attaching the configuration, but I didn't see it so I kept trying and it said "Sorry, the board attachment quota has been reached."
AlexB
Posts: 18
Joined: Mon Aug 03, 2015 3:18 pm

Re: Event Filters Not Running

Post by AlexB »

My configuration settings are this though: Archive Status = to Unarchived only. And Date Less than -14 days. Sort by Date/Time Asc Limit to first 100 results only. Then I checked delete all matches and saved with run filter in background checked too.
mikb
Posts: 704
Joined: Mon Mar 25, 2013 12:34 pm

Re: Event Filters Not Running

Post by mikb »

AlexB wrote:Sorry, I tried attaching the configuration, but I didn't see it so I kept trying and it said "Sorry, the board attachment quota has been reached."
Is there something a moderator can do to un-break this? I've seen quite a few comments from people trying to attach images to solve problems, but getting that error.

Is the forum full :) ?
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Event Filters Not Running

Post by asker »

How about you post it to http://imgur.com and paste a link?
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
AlexB
Posts: 18
Joined: Mon Aug 03, 2015 3:18 pm

Re: Event Filters Not Running

Post by AlexB »

Can't, it says "Your post looks too spamy for a new user, please remove off-site URLs". :?
AlexB
Posts: 18
Joined: Mon Aug 03, 2015 3:18 pm

Re: Event Filters Not Running

Post by AlexB »

Actually, I guess you could just add this to the end of Imgur's url

/AkITh8S
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Event Filters Not Running

Post by asker »

Nothing wrong that I can see with how you've configured it -- to delete after 14 days.

Some thoughts:
a) Is there any other filter that is marking your events as archived before this kicks in? If you are not sure, how about trying just to keep in -14 days and remove the archive unset condition?

b) Try and launch from command line

Code: Select all

zmfilter.pl -f <yourfiltername>
zmaudit.pl
Then see if the events are deleted (easy visual way is to go to timeline and make sure there are no events before 14 days)
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
AlexB
Posts: 18
Joined: Mon Aug 03, 2015 3:18 pm

Re: Event Filters Not Running

Post by AlexB »

I ran the first command and it says, "Name "Net::SFTP::Foreign::debug" used only once: possible typo at /usr/bin/zmfilter.pl line 817."

This is line 817.

Code: Select all

$Net::SFTP::Foreign::debug = -1 if $Config{ZM_UPLOAD_DEBUG};
            my $sftp = Net::SFTP::Foreign->new( $Config{ZM_UPLOAD_HOST}, %sftpOptions );
            if ( $sftp->error )
            {
                Error( "Can't create SFTP connection: ".$sftp->error );
                return( 0 );
AlexB
Posts: 18
Joined: Mon Aug 03, 2015 3:18 pm

Re: Event Filters Not Running

Post by AlexB »

The filter apparently worked anyway, but I'm still not sure if the filter will run every two weeks like it's supposed to because it's still showing up as "Choose Filter." :|
Locked