loop recording

Forum for questions and support relating to the 1.30.x releases only.
Post Reply
Goga
Posts: 4
Joined: Mon Sep 19, 2016 4:14 pm

loop recording

Post by Goga » Mon Sep 19, 2016 4:26 pm

Hello everyone.
How ZoneMinder to make cyclic recording. But do not remove ALL events?
I need to delete only the last event.

mikb
Posts: 457
Joined: Mon Mar 25, 2013 12:34 pm

Re: loop recording

Post by mikb » Mon Sep 19, 2016 5:20 pm

If by "delete only the last event" you mean "delete only the OLDEST event", then ZM already does this: Let it record (which fills the disk) and set a filter for "Purge when full" for whatever percentage of disk space you want to take up. It will form a cyclic buffer with events being added, and deleted from the back as the disk gets full.

If you mean "delete only the most recently recorded event" (the last one recorded, the newest) without deleting all the OLDER ones, then that's an odd usage case that I can't get my head around.

Goga
Posts: 4
Joined: Mon Sep 19, 2016 4:14 pm

Re: loop recording

Post by Goga » Mon Sep 19, 2016 8:36 pm

I mean "delete only the OLDEST event"
ZM removes all events.
I need to "Purge when full" remove the check mark from the "Delete all matches"?

mikb
Posts: 457
Joined: Mon Mar 25, 2013 12:34 pm

Re: loop recording

Post by mikb » Tue Sep 20, 2016 5:21 pm

Thanks for clarifying: In which case: ZM does not remove ALL Events -- that would be quite destructive.

It removes the all events *you tell it to* (either by age, or to free up disk space, or many other criteria) -- that's the point of the filter criteria selection.

Once you have matched the relevant events with the top part of the filter, you can delete them, archive them, make videos from them etc.

If you un-check "delete all matches", your next question will be "Why does my purge not purge anything?"

A: Because you told it not to. "A bunch of matches were found, and you didn't want them deleted, or videod, or ... anything. So. I found them! And ... nothing."

So: Enable "Purge when full" to run in the background, and adjust the buffer/queue length by setting it not to use more than (X%) of the disk. When the disk fills up to (X%) the oldest events will be deleted, to make space for new ones.

Goga
Posts: 4
Joined: Mon Sep 19, 2016 4:14 pm

Re: loop recording

Post by Goga » Wed Sep 21, 2016 8:51 am

Good. It works.
I set delete old records on 5 matches.
But in response, I received a lot of deletes for 5 matches.

Code: Select all

2016-09-21 12:30:43.617460	zmfilter		3362	INF	Deleting event 689 from Monitor 1	zmfilter.pl	
2016-09-21 12:30:43.607230	zmfilter		3362	INF	Deleting event 688 from Monitor 1	zmfilter.pl	
2016-09-21 12:30:43.596800	zmfilter		3362	INF	Deleting event 687 from Monitor 1	zmfilter.pl	
2016-09-21 12:30:43.582120	zmfilter		3362	INF	Deleting event 686 from Monitor 1	zmfilter.pl	
2016-09-21 12:30:43.574250	zmfilter		3362	INF	Deleting event 685 from Monitor 1	zmfilter.pl

2016-09-21 12:29:43.560450	zmfilter		3362	INF	Deleting event 684 from Monitor 1	zmfilter.pl	
2016-09-21 12:29:43.550260	zmfilter		3362	INF	Deleting event 683 from Monitor 1	zmfilter.pl	
2016-09-21 12:29:43.541950	zmfilter		3362	INF	Deleting event 682 from Monitor 1	zmfilter.pl	
2016-09-21 12:29:43.527870	zmfilter		3362	INF	Deleting event 681 from Monitor 1	zmfilter.pl	
2016-09-21 12:29:43.519790	zmfilter		3362	INF	Deleting event 680 from Monitor 1	zmfilter.pl

2016-09-21 12:28:43.503240	zmfilter		3362	INF	Deleting event 679 from Monitor 1	zmfilter.pl	
2016-09-21 12:28:43.491220	zmfilter		3362	INF	Deleting event 678 from Monitor 1	zmfilter.pl	
2016-09-21 12:28:43.480850	zmfilter		3362	INF	Deleting event 677 from Monitor 1	zmfilter.pl	
2016-09-21 12:28:43.470070	zmfilter		3362	INF	Deleting event 676 from Monitor 1	zmfilter.pl	
2016-09-21 12:28:43.459130	zmfilter		3362	INF	Deleting event 675 from Monitor 1	zmfilter.pl

2016-09-21 12:27:43.436310	zmfilter		3362	INF	Deleting event 674 from Monitor 1	zmfilter.pl	
2016-09-21 12:27:43.426840	zmfilter		3362	INF	Deleting event 673 from Monitor 1	zmfilter.pl	
2016-09-21 12:27:43.415860	zmfilter		3362	INF	Deleting event 672 from Monitor 1	zmfilter.pl	
2016-09-21 12:27:43.405460	zmfilter		3362	INF	Deleting event 671 from Monitor 1	zmfilter.pl	
2016-09-21 12:27:43.392550	zmfilter		3362	INF	Deleting event 670 from Monitor 1	zmfilter.pl

2016-09-21 12:26:43.375640	zmfilter		3362	INF	Deleting event 669 from Monitor 1	zmfilter.pl	
2016-09-21 12:26:43.367780	zmfilter		3362	INF	Deleting event 668 from Monitor 1	zmfilter.pl	
2016-09-21 12:26:43.360380	zmfilter		3362	INF	Deleting event 667 from Monitor 1	zmfilter.pl	
2016-09-21 12:26:43.348550	zmfilter		3362	INF	Deleting event 666 from Monitor 1	zmfilter.pl	
2016-09-21 12:26:43.309030	zmfilter		3362	INF	Deleting event 665 from Monitor 1	zmfilter.pl

2016-09-21 12:25:43.290480	zmfilter		3362	INF	Deleting event 664 from Monitor 1	zmfilter.pl	
2016-09-21 12:25:43.282450	zmfilter		3362	INF	Deleting event 663 from Monitor 1	zmfilter.pl	
2016-09-21 12:25:43.274820	zmfilter		3362	INF	Deleting event 662 from Monitor 1	zmfilter.pl	
2016-09-21 12:25:43.265860	zmfilter		3362	INF	Deleting event 661 from Monitor 1	zmfilter.pl	
2016-09-21 12:25:43.257110	zmfilter		3362	INF	Deleting event 660 from Monitor 1	zmfilter.pl

2016-09-21 12:24:43.238010	zmfilter		3362	INF	Deleting event 659 from Monitor 1	zmfilter.pl	
2016-09-21 12:24:43.231110	zmfilter		3362	INF	Deleting event 658 from Monitor 1	zmfilter.pl	
2016-09-21 12:24:43.222340	zmfilter		3362	INF	Deleting event 657 from Monitor 1	zmfilter.pl	
2016-09-21 12:24:43.214300	zmfilter		3362	INF	Deleting event 656 from Monitor 1	zmfilter.pl	
2016-09-21 12:24:43.208240	zmfilter		3362	INF	Deleting event 655 from Monitor 1	zmfilter.pl

2016-09-21 12:23:43.193230	zmfilter		3362	INF	Deleting event 654 from Monitor 1	zmfilter.pl	
2016-09-21 12:23:43.184450	zmfilter		3362	INF	Deleting event 653 from Monitor 1	zmfilter.pl	
2016-09-21 12:23:43.174840	zmfilter		3362	INF	Deleting event 652 from Monitor 1	zmfilter.pl	
2016-09-21 12:23:43.160850	zmfilter		3362	INF	Deleting event 651 from Monitor 1	zmfilter.pl	
2016-09-21 12:23:43.151660	zmfilter		3362	INF	Deleting event 650 from Monitor 1	zmfilter.pl

2016-09-21 12:22:43.135450	zmfilter		3362	INF	Deleting event 649 from Monitor 1	zmfilter.pl	
2016-09-21 12:22:43.124780	zmfilter		3362	INF	Deleting event 648 from Monitor 1	zmfilter.pl	
2016-09-21 12:22:43.118050	zmfilter		3362	INF	Deleting event 647 from Monitor 1	zmfilter.pl	
2016-09-21 12:22:43.107650	zmfilter		3362	INF	Deleting event 646 from Monitor 1	zmfilter.pl	
2016-09-21 12:22:43.100710	zmfilter		3362	INF	Deleting event 645 from Monitor 1	zmfilter.pl

2016-09-21 12:21:43.084500	zmfilter		3362	INF	Deleting event 644 from Monitor 1	zmfilter.pl	
2016-09-21 12:21:43.079680	zmfilter		3362	INF	Deleting event 643 from Monitor 1	zmfilter.pl	
2016-09-21 12:21:43.073730	zmfilter		3362	INF	Deleting event 642 from Monitor 1	zmfilter.pl	
2016-09-21 12:21:43.068320	zmfilter		3362	INF	Deleting event 641 from Monitor 1	zmfilter.pl	
2016-09-21 12:21:43.061350	zmfilter		3362	INF	Deleting event 640 from Monitor 1	zmfilter.pl

2016-09-21 12:20:43.041340	zmfilter		3362	INF	Deleting event 639 from Monitor 1	zmfilter.pl	
2016-09-21 12:20:43.030740	zmfilter		3362	INF	Deleting event 638 from Monitor 1	zmfilter.pl	
2016-09-21 12:20:43.020510	zmfilter		3362	INF	Deleting event 637 from Monitor 1	zmfilter.pl	
2016-09-21 12:20:43.006630	zmfilter		3362	INF	Deleting event 636 from Monitor 1	zmfilter.pl	
2016-09-21 12:20:42.989170	zmfilter		3362	INF	Deleting event 635 from Monitor 1	zmfilter.pl

2016-09-21 12:19:42.972530	zmfilter		3362	INF	Deleting event 634 from Monitor 1	zmfilter.pl	
2016-09-21 12:19:42.965420	zmfilter		3362	INF	Deleting event 633 from Monitor 1	zmfilter.pl	
2016-09-21 12:19:42.953180	zmfilter		3362	INF	Deleting event 632 from Monitor 1	zmfilter.pl	
2016-09-21 12:19:42.941110	zmfilter		3362	INF	Deleting event 631 from Monitor 1	zmfilter.pl	
2016-09-21 12:19:42.934000	zmfilter		3362	INF	Deleting event 630 from Monitor 1	zmfilter.pl

2016-09-21 12:18:42.917930	zmfilter		3362	INF	Deleting event 629 from Monitor 1	zmfilter.pl	
2016-09-21 12:18:42.908690	zmfilter		3362	INF	Deleting event 628 from Monitor 1	zmfilter.pl	
2016-09-21 12:18:42.900130	zmfilter		3362	INF	Deleting event 627 from Monitor 1	zmfilter.pl	
2016-09-21 12:18:42.892020	zmfilter		3362	INF	Deleting event 626 from Monitor 1	zmfilter.pl	
2016-09-21 12:18:42.882550	zmfilter		3362	INF	Deleting event 625 from Monitor 1	zmfilter.pl

2016-09-21 12:17:42.867010	zmfilter		3362	INF	Deleting event 624 from Monitor 1	zmfilter.pl	
2016-09-21 12:17:42.857870	zmfilter		3362	INF	Deleting event 623 from Monitor 1	zmfilter.pl	
2016-09-21 12:17:42.848280	zmfilter		3362	INF	Deleting event 622 from Monitor 1	zmfilter.pl	
2016-09-21 12:17:42.837530	zmfilter		3362	INF	Deleting event 621 from Monitor 1	zmfilter.pl	
2016-09-21 12:17:42.827320	zmfilter		3362	INF	Deleting event 620 from Monitor 1	zmfilter.pl

2016-09-21 12:16:42.812750	zmfilter		3362	INF	Deleting event 619 from Monitor 1	zmfilter.pl	
2016-09-21 12:16:42.806070	zmfilter		3362	INF	Deleting event 618 from Monitor 1	zmfilter.pl	
2016-09-21 12:16:42.802810	zmfilter		3362	INF	Deleting event 617 from Monitor 1	zmfilter.pl	
2016-09-21 12:16:42.794530	zmfilter		3362	INF	Deleting event 616 from Monitor 1	zmfilter.pl	
2016-09-21 12:16:42.784430	zmfilter		3362	INF	Deleting event 615 from Monitor 1	zmfilter.pl

2016-09-21 12:15:42.769160	zmfilter		3362	INF	Deleting event 614 from Monitor 1	zmfilter.pl	
2016-09-21 12:15:42.760820	zmfilter		3362	INF	Deleting event 613 from Monitor 1	zmfilter.pl	
2016-09-21 12:15:42.750500	zmfilter		3362	INF	Deleting event 612 from Monitor 1	zmfilter.pl	
2016-09-21 12:15:42.742010	zmfilter		3362	INF	Deleting event 611 from Monitor 1	zmfilter.pl	
2016-09-21 12:15:42.732150	zmfilter		3362	INF	Deleting event 610 from Monitor 1	zmfilter.pl

2016-09-21 12:14:42.717490	zmfilter		3362	INF	Deleting event 609 from Monitor 1	zmfilter.pl	
2016-09-21 12:14:42.708340	zmfilter		3362	INF	Deleting event 608 from Monitor 1	zmfilter.pl	
2016-09-21 12:14:42.697710	zmfilter		3362	INF	Deleting event 607 from Monitor 1	zmfilter.pl	
2016-09-21 12:14:42.686520	zmfilter		3362	INF	Deleting event 606 from Monitor 1	zmfilter.pl	
2016-09-21 12:14:42.674940	zmfilter		3362	INF	Deleting event 605 from Monitor 1	zmfilter.pl

2016-09-21 12:13:42.655670	zmfilter		3362	INF	Deleting event 604 from Monitor 1	zmfilter.pl	
2016-09-21 12:13:42.645710	zmfilter		3362	INF	Deleting event 603 from Monitor 1	zmfilter.pl	
2016-09-21 12:13:42.636550	zmfilter		3362	INF	Deleting event 602 from Monitor 1	zmfilter.pl	
2016-09-21 12:13:42.627690	zmfilter		3362	INF	Deleting event 601 from Monitor 1	zmfilter.pl	
2016-09-21 12:13:42.618390	zmfilter		3362	INF	Deleting event 600 from Monitor 1	zmfilter.pl

2016-09-21 12:12:42.601520	zmfilter		3362	INF	Deleting event 599 from Monitor 1	zmfilter.pl	
2016-09-21 12:12:42.593680	zmfilter		3362	INF	Deleting event 598 from Monitor 1	zmfilter.pl	
2016-09-21 12:12:42.584540	zmfilter		3362	INF	Deleting event 597 from Monitor 1	zmfilter.pl	
2016-09-21 12:12:42.570230	zmfilter		3362	INF	Deleting event 596 from Monitor 1	zmfilter.pl	
2016-09-21 12:12:42.563250	zmfilter		3362	INF	Deleting event 595 from Monitor 1	zmfilter.pl

2016-09-21 12:11:42.545740	zmfilter		3362	INF	Deleting event 594 from Monitor 1	zmfilter.pl	
2016-09-21 12:11:42.539590	zmfilter		3362	INF	Deleting event 593 from Monitor 1	zmfilter.pl	
2016-09-21 12:11:42.532500	zmfilter		3362	INF	Deleting event 592 from Monitor 1	zmfilter.pl	
2016-09-21 12:11:42.524840	zmfilter		3362	INF	Deleting event 591 from Monitor 1	zmfilter.pl	
2016-09-21 12:11:42.517920	zmfilter		3362	INF	Deleting event 590 from Monitor 1	zmfilter.pl

2016-09-21 12:10:42.501870	zmfilter		3362	INF	Deleting event 589 from Monitor 1	zmfilter.pl	
2016-09-21 12:10:42.495050	zmfilter		3362	INF	Deleting event 588 from Monitor 1	zmfilter.pl	
2016-09-21 12:10:42.481650	zmfilter		3362	INF	Deleting event 587 from Monitor 1	zmfilter.pl	
2016-09-21 12:10:42.469740	zmfilter		3362	INF	Deleting event 586 from Monitor 1	zmfilter.pl	
2016-09-21 12:10:42.460750	zmfilter		3362	INF	Deleting event 585 from Monitor 1	zmfilter.pl

2016-09-21 12:09:42.448040	zmfilter		3362	INF	Deleting event 584 from Monitor 1	zmfilter.pl	
2016-09-21 12:09:42.441980	zmfilter		3362	INF	Deleting event 583 from Monitor 1	zmfilter.pl	
2016-09-21 12:09:42.430620	zmfilter		3362	INF	Deleting event 582 from Monitor 1	zmfilter.pl	
2016-09-21 12:09:42.420790	zmfilter		3362	INF	Deleting event 581 from Monitor 1	zmfilter.pl	
2016-09-21 12:09:42.413520	zmfilter		3362	INF	Deleting event 580 from Monitor 1	zmfilter.pl

2016-09-21 12:08:42.394640	zmfilter		3362	INF	Deleting event 579 from Monitor 1	zmfilter.pl	
2016-09-21 12:08:42.385380	zmfilter		3362	INF	Deleting event 578 from Monitor 1	zmfilter.pl	
2016-09-21 12:08:42.375630	zmfilter		3362	INF	Deleting event 577 from Monitor 1	zmfilter.pl	
2016-09-21 12:08:42.365490	zmfilter		3362	INF	Deleting event 576 from Monitor 1	zmfilter.pl	
2016-09-21 12:08:42.357080	zmfilter		3362	INF	Deleting event 575 from Monitor 1	zmfilter.pl

2016-09-21 12:07:42.339140	zmfilter		3362	INF	Deleting event 574 from Monitor 1	zmfilter.pl	
2016-09-21 12:07:42.321710	zmfilter		3362	INF	Deleting event 573 from Monitor 1	zmfilter.pl	
2016-09-21 12:07:42.314480	zmfilter		3362	INF	Deleting event 572 from Monitor 1	zmfilter.pl	
2016-09-21 12:07:42.307230	zmfilter		3362	INF	Deleting event 571 from Monitor 1	zmfilter.pl	
2016-09-21 12:07:42.298230	zmfilter		3362	INF	Deleting event 570 from Monitor 1	zmfilter.pl

2016-09-21 12:06:42.282760	zmfilter		3362	INF	Deleting event 569 from Monitor 1	zmfilter.pl	
2016-09-21 12:06:42.275450	zmfilter		3362	INF	Deleting event 568 from Monitor 1	zmfilter.pl	
2016-09-21 12:06:42.267420	zmfilter		3362	INF	Deleting event 567 from Monitor 1	zmfilter.pl	
2016-09-21 12:06:42.258060	zmfilter		3362	INF	Deleting event 566 from Monitor 1	zmfilter.pl	
2016-09-21 12:06:42.248670	zmfilter		3362	INF	Deleting event 565 from Monitor 1	zmfilter.pl

2016-09-21 12:05:42.233860	zmfilter		3362	INF	Deleting event 564 from Monitor 1	zmfilter.pl	
2016-09-21 12:05:42.224250	zmfilter		3362	INF	Deleting event 563 from Monitor 1	zmfilter.pl	
2016-09-21 12:05:42.214510	zmfilter		3362	INF	Deleting event 562 from Monitor 1	zmfilter.pl	
2016-09-21 12:05:42.200690	zmfilter		3362	INF	Deleting event 561 from Monitor 1	zmfilter.pl	
2016-09-21 12:05:42.173990	zmfilter		3362	INF	Deleting event 560 from Monitor 1	zmfilter.pl

2016-09-21 12:04:42.154700	zmfilter		3362	INF	Deleting event 559 from Monitor 1	zmfilter.pl	
2016-09-21 12:04:42.145200	zmfilter		3362	INF	Deleting event 558 from Monitor 1	zmfilter.pl	
2016-09-21 12:04:42.137730	zmfilter		3362	INF	Deleting event 557 from Monitor 1	zmfilter.pl	
2016-09-21 12:04:42.130150	zmfilter		3362	INF	Deleting event 556 from Monitor 1	zmfilter.pl	
2016-09-21 12:04:42.121860	zmfilter		3362	INF	Deleting event 555 from Monitor 1	zmfilter.pl
How to fix it?

SteveGilvarry
Posts: 419
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: loop recording

Post by SteveGilvarry » Wed Sep 21, 2016 10:02 am

Turn off the Fast Delete Option, problem is caused by filter running faster than zmaudit, so filter is deleting 5, running again and deleting 5 and again and again, eventually zmaudit runs cleans up the disk and filter stops deleting.
Production Zoneminder 1.32.3
Random Selection of Cameras (Dahua and Hikvision)
More Dev VM's than I care to count.

Goga
Posts: 4
Joined: Mon Sep 19, 2016 4:14 pm

Re: loop recording

Post by Goga » Wed Sep 21, 2016 10:47 am

Where can I find this option?

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests