How to delete the logs?

Forum for questions and support relating to the 1.25.x releases only.
Locked
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

How to delete the logs?

Post by PacoLM »

Hi,

I saw some settings in the Options:Log parameters, but is there any way to delete the logs without going to the database?

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
dogmeat206
Posts: 51
Joined: Tue Oct 11, 2011 10:15 pm

Re: How to delete the logs?

Post by dogmeat206 »

zmaudit is suppose to do some cleanup. I believe there is information in the wiki about it....search for that as its what does the cleanup for logging and such.
Aen5quai
Posts: 7
Joined: Wed Nov 16, 2011 11:36 am

Re: How to delete the logs?

Post by Aen5quai »

dogmeat206 wrote:zmaudit is suppose to do some cleanup.
i had 170GB of log (images) files and after deleting ALL logs via ZM web interface, it delets 90GB only. And other 80GB files are stay keeping. I try restart ZM - no results, i've update ZM from 1.24.4 to 1.25.0 - no results too. ZM web interface show me 0 events.
I try run zmaudit.pl -r, this show nothing
How to delete remains log files? Any ideas?
thanks
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: How to delete the logs?

Post by mastertheknife »

Deleting data from MySQL tables does not always free up disk space immediately. To reclaim the freed up disk space, run this:

Code: Select all

OPTIMIZE TABLE `Logs`
mastertheknife
Kfir Itzhak.
Aen5quai
Posts: 7
Joined: Wed Nov 16, 2011 11:36 am

Re: How to delete the logs?

Post by Aen5quai »

[quote="mastertheknife"]Deleting data from MySQL tables does not always free up disk space immediately. To reclaim the freed up disk space, run this:

Code: Select all

OPTIMIZE TABLE `Logs`
Is it delete DB data only, or images of the events on file system too?
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: How to delete the logs?

Post by PacoLM »

I was asking about deleting the logs shown in the new Log option, with the application status and warnings, not the events or images.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Locked