[Solved]Zoneminder master 1.35.9~20201003115820-focal - log delete button is missing

Previous development branch now released as 1.36
Locked
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

[Solved]Zoneminder master 1.35.9~20201003115820-focal - log delete button is missing

Post by bkjaya1952 »

The button for deleting logs in log panel is missing in Zoneminder master 1.35.9~20201003115820-focal released today
Screenshot from 2020-10-03 21-32-45.png
Screenshot from 2020-10-03 21-32-45.png (365.53 KiB) Viewed 6257 times
Figure:- 1 No problem in creating monitors , emailing , uploading motion detection events

Screenshot from 2020-10-03 21-34-24.png
Screenshot from 2020-10-03 21-34-24.png (279.52 KiB) Viewed 6257 times
Figure:- 2 Delete Logs button is missing

I had to use the following terminal commands to delete the logs

mysql -uroot -ppassword zm

truncate table Logs;

quit
Last edited by bkjaya1952 on Sun Oct 04, 2020 4:40 am, edited 1 time in total.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder master 1.35.9~20201003115820-focal - log delete button is missing

Post by knight-of-ni »

That's correct. I left that feature out. Can you describe a reason why someone would want to delete a specific number of log entries?

Note that log files are automatically purged by zmfilter, based on LOG_DATABASE_LIMIT under Options -> Logging. You can set this to either a max number for records, or specify a time limit.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder master 1.35.9~20201003115820-focal - log delete button is missing

Post by knight-of-ni »

Something else I have not documented... The search bar you see will search for any text you type, in any field. If you have a need to search for text in specific fields, open the advanced search modal, by clicking the Down Chevron.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: Zoneminder master 1.35.9~20201003115820-focal - log delete button is missing

Post by bkjaya1952 »

knight-of-ni wrote: Sat Oct 03, 2020 6:21 pm That's correct. I left that feature out. Can you describe a reason why someone would want to delete a specific number of log entries?

Note that log files are automatically purged by zmfilter, based on LOG_DATABASE_LIMIT under Options -> Logging. You can set this to either a max number for records, or specify a time limit.
I was thinking about removing red color alarm at log button. :) .
Thank you Sir . I will use LOG_DATABASE_LIMIT to delete logs.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: [Solved]Zoneminder master 1.35.9~20201003115820-focal - log delete button is missing

Post by knight-of-ni »

Thanks for the feedback. I'll keep those ideas in mind.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: [Solved]Zoneminder master 1.35.9~20201003115820-focal - log delete button is missing

Post by bkjaya1952 »

knight-of-ni wrote: Sun Oct 04, 2020 12:14 pm Thanks for the feedback. I'll keep those ideas in mind.
Thank you Sir
dougmccrary
Posts: 1210
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: [Solved]Zoneminder master 1.35.9~20201003115820-focal - log delete button is missing

Post by dougmccrary »

Clear button -
because sometimes when you try to see some intermittent error, there's something else going on such that it's hard to catch what you want.
A clear button minimizes the stuff you need to visually filter, until you can use the filters to see what it is.

A thing to filter stuff *out* would be even better...
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: [Solved]Zoneminder master 1.35.9~20201003115820-focal - log delete button is missing

Post by knight-of-ni »

dougmccrary wrote: Tue Oct 06, 2020 6:55 am Clear button -
because sometimes when you try to see some intermittent error, there's something else going on such that it's hard to catch what you want.
A clear button minimizes the stuff you need to visually filter, until you can use the filters to see what it is.

A thing to filter stuff *out* would be even better...
That is precisely what the search bar is for. I've found it to be very fast too.

So for example, you've got an intermittent error, just type part of the text in the search bar and everything gets filtered out except for events with the text you entered (in any field).

And again, if you want to filter out data in specific fields, then use the Advanced search bar to do that.

Note also the clock icon in the toolbar. Click that to stop the auto refresh. That will stop new information from flowing into the view. The squarish refresh button lets you manually refresh the data in the table via mouseclick at the moment you choose.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
dougmccrary
Posts: 1210
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: [Solved]Zoneminder master 1.35.9~20201003115820-focal - log delete button is missing

Post by dougmccrary »

Ah ha.
I'll try that.
thanks.

OK, very cool.
But if i want say m1, it gets m10, m11 ....can it be made to accept trailing space? or how is that done?
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: [Solved]Zoneminder master 1.35.9~20201003115820-focal - log delete button is missing

Post by knight-of-ni »

dougmccrary wrote: Wed Oct 07, 2020 5:39 am Ah ha.
I'll try that.
thanks.

OK, very cool.
But if i want say m1, it gets m10, m11 ....can it be made to accept trailing space? or how is that done?
I just pushed a change to master that removes the "%" wildcards that get injected into each field in the advanced search. This should allow you to search on "m1" and not get "m10" or "m11" returned in the result. You should also be able to add the "%" wildcard manually in cases where you do want to that kind of search. Note this is for the advanced search toolbar, not the normal search toolbar.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked