Delete Filter X# of days old

Support and queries relating to all previous versions of ZoneMinder
Locked
Alan87i
Posts: 116
Joined: Sun Jul 27, 2008 9:58 am

Delete Filter X# of days old

Post 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
50cc
Posts: 82
Joined: Sun Mar 23, 2008 12:01 pm
Location: The Netherlands

Post 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...
Alan87i
Posts: 116
Joined: Sun Jul 27, 2008 9:58 am

Post 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
FiltranZer
Posts: 1
Joined: Thu Jul 02, 2009 6:03 am

Post by FiltranZer »

I will thank you too 50cc because I got also the information that i need in your answer.,


_________________
Furnace filter
Wimpanzee
Posts: 3
Joined: Fri Jul 29, 2005 6:08 pm

Post 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']
Wimpanzee
Posts: 3
Joined: Fri Jul 29, 2005 6:08 pm

Post by Wimpanzee »

I guess I am just dumb and forgot to put ' day' after the '-2'

:)
Crosbychery
Posts: 1
Joined: Sun Sep 13, 2015 5:01 am

Re:

Post 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 !!
:D
Locked