mdl_stats_daily

mdl_stats_daily

by Chris Kenniburg -
Number of replies: 4
I was wondering if I could clear our daily stats log files directly from the database.

Currently we are at 7.5Gigs of Log files and I have it set at 30 days! 

Can I safely clear this from the database and if so how?

Please help.

Thanks,
Chris
Average of ratings: -
In reply to Chris Kenniburg

Re: mdl_stats_daily

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
If you don't mind loosing your stats, just stop processing them and delete the contents from the table in the database.

Saludos. Iñaki.
In reply to Iñaki Arenaza

Re: mdl_stats_daily

by Chris Kenniburg -
What section in moodle do I deactivate it.  Or can I just dump the contents of the table every week to keep the size down?

Thanks,
-Chris
In reply to Iñaki Arenaza

Re: mdl_stats_daily

by Penny Leach -
there was a bug in stats that caused an infinite loop. This has recently been fixed. I would delete everything from mdl_stats_daily, and delete the statslastrun% entries from the config table, update to 1.6.2+ and then try again.
In reply to Penny Leach

Re: mdl_stats_daily

by Susanne Lowry -

We have this same problem.

How do you delete everything from the statistics?