Page 1 of 1
Delete Filter X# of days old
Posted: Wed Apr 22, 2009 9:51 am
by Alan87i
I"m looking for a hand in setting up a filter on a monitor that will delete all events older than say 10 days .
I fiddled with it for some time now and have gotten closer to no where.
Thanks
Allan
Posted: Wed Apr 22, 2009 10:19 pm
by 50cc
This is a lot easier than you would think (and it works), do this:
- - Press the Filters button in the bottom left of the main screen
- In the new window do 'Date/Time' _ 'Less Than' _ '-10 day' (note the - minus - sign before the 10)
- Do the plus sign
- and then: 'Archive Status' _ 'Equal to' _ 'Unarchived only'
- Check 'Delete all matches'
- Click Save in top-right
- Give it a name
- Check 'Run in background'
That should do it...
Posted: Thu Apr 23, 2009 9:22 am
by Alan87i
Thanks 50cc
That's exactly what I was looking for!!
I was having issues with some high traffic cameras locking up because of too many events I figure.
Allan
Posted: Thu Jul 02, 2009 6:39 am
by FiltranZer
I will thank you too 50cc because I got also the information that i need in your answer.,
_________________
Furnace filter
Posted: Thu Jul 30, 2009 1:03 pm
by Wimpanzee
Using a recent install of zoneminder on ubuntu 9.04, when creating the above defined filter i have no issues.
however when it runs in the background, i get an error in zmfilter.log:
Code: Select all
07/30/09 07:36:12.965897 zmfilter[8902].ERR [Error parsing date/time '-2', skipping filter 'Delete2Day']
07/30/09 07:42:12.971954 zmfilter[8902].ERR [Unable to parse date string '-2']
Posted: Thu Jul 30, 2009 1:17 pm
by Wimpanzee
I guess I am just dumb and forgot to put ' day' after the '-2'

Re:
Posted: Sun Sep 13, 2015 5:10 am
by Crosbychery
This is Very helpful form me, but still not what I needed. I have a similar deleter that doesn't have much of a command line parser, but it uses the pipeline filter pattern to easily add in more filters. I needed files beginning with numeric, files whose names were guides etc.
Thanks !!
