Filter does not run automatically on it's own like it should

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
kyferez
Posts: 21
Joined: Fri Dec 25, 2020 7:13 pm

Filter does not run automatically on it's own like it should

Post by kyferez »

I have this filter (see attachment below) setup. It does Not run automatically. Every few days I have to manually click Execute and then manually click the checkbox to select all and scroll down and click Delete.

Why won't it run and delete automatically?

Thanks!
delete_filter.png
delete_filter.png (61.53 KiB) Viewed 4332 times
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Filter does not run automatically on it's own like it should

Post by Magic919 »

Try running on the command line if the logs show nothing.
-
kyferez
Posts: 21
Joined: Fri Dec 25, 2020 7:13 pm

Re: Filter does not run automatically on it's own like it should

Post by kyferez »

Magic919 wrote: Sat Jul 10, 2021 6:53 am Try running on the command line if the logs show nothing.
What log would I be looking at and what would I be looking for in the logs?

Is there docs on how to run from command line so I know where the command and format is to do that?

I found this by searching for "delete" but no idea what no filter found means and this doesn't really look like the filter I posted above:
07/10/2021 03:54:08.269290 zmfilter_3[27657].WAR [main:267] [No filter found for SELECT * FROM `Filters` WHERE `Id` = ? AND( `AutoArchive` = 1
or `AutoVideo` = 1
or `AutoUpload` = 1
or `AutoEmail` = 1
or `AutoMessage` = 1
or `AutoExecute` = 1
or `AutoDelete` = 1
or `UpdateDiskSpace` = 1
or `AutoMove` = 1
or `AutoCopy` = 1
) ORDER BY `Name` with values(3)]
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Filter does not run automatically on it's own like it should

Post by Magic919 »

This is a good place to check - https://zoneminder.readthedocs.io/en/1. ... vents.html

You need to give it the filter id or name.

Code: Select all

Usage:
    zmfilter.pl [-f <filter name>,--filter=<filter name>]
    [--filter_id=<filter id>] | -v, --version

Options:
    -f{filter name}, --filter={filter name} - The name of a specific filter
    to run --filter_id={filter id} - The id of a specific filter to run -v,
    --version - Print ZoneMinder version
-
kyferez
Posts: 21
Joined: Fri Dec 25, 2020 7:13 pm

Re: Filter does not run automatically on it's own like it should

Post by kyferez »

This is all I got using the command line filter:
[root@dvr bin]# zmfilter.pl --filter=PurgeWhenFull
07/10/2021 15:18:06.180082 zmfilter[1805].INF [main:177] [Scanning for events using filter 'PurgeWhenFull']
[root@dvr bin]#
Search for the filter name only showed this in logs:
[root@dvr log]# pwd
/var/log
[root@dvr log]# grep -rni PurgeWhenFull ./*
./messages:4923872:Jul 10 15:18:06 dvr zmfilter[1805]: INF [Scanning for events using filter 'PurgeWhenFull']
./zoneminder/zmfilter.log:1:07/10/2021 15:18:06.180082 zmfilter[1805].INF [main:177] [Scanning for events using filter 'PurgeWhenFull']
[root@dvr log]#
kyferez
Posts: 21
Joined: Fri Dec 25, 2020 7:13 pm

Re: Filter does not run automatically on it's own like it should

Post by kyferez »

Anyone have any ideas on why the filter is not automatically working?
dougmccrary
Posts: 1174
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Filter does not run automatically on it's own like it should

Post by dougmccrary »

Might be a bug. But it you make a separate filter for default and 2tb, I think you'll find it works.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Filter does not run automatically on it's own like it should

Post by Magic919 »

That sounds like a good suggestion, divide and conquer. I'm not convinced having two separate storage locations works well either, but I've never tried that.
-
kyferez
Posts: 21
Joined: Fri Dec 25, 2020 7:13 pm

Re: Filter does not run automatically on it's own like it should

Post by kyferez »

I've divided it up into 2 filters, one for Default storage and one for 2TB storage. I'll see how that goes and report back.

@Magic919 As for having multiple storage locations, that's a non-issue. Simply set in the camera Storage tab settings which one to use.
kyferez
Posts: 21
Joined: Fri Dec 25, 2020 7:13 pm

Re: Filter does not run automatically on it's own like it should

Post by kyferez »

Well it does look like it is working now. There must be some bug with the more complex expressions.
Post Reply