Results 1 to 1 of 1
-
13th Jan 2008, 01:35 AM #1OPMember
[TUT]Quick cleaning of logs
Log entries in the SQL DB can become quite unruly if they are not kept in check. This can quickly grow out of hand. Right now on my forum, I have 73,838 spider logs since I last deleted... What good are these? None.
Go to your ACP->SQL Toolbox (or phpMyAdmin) and issue the following query..
Code:truncate ibf_admin_logs; truncate ibf_admin_login_logs; truncate ibf_email_logs; truncate ibf_mail_error_logs; truncate ibf_moderator_logs; truncate ibf_spider_logs; truncate ibf_task_logs; truncate ibf_warn_logs;
Next, stay in the SQL Toolbox and Optimize all the tables of your DB. This will help reclaim the lost space from deleting the logs.
On my board, with 76 admin logs (8.3k), 9 email logs (8.4k), 0 mail error logs (0k), 9,642 task logs (791.9k) and 73,842 spider logs (4.9 meg)... the stats are as follows...
Before running anything, DB size of 81.8 Megs
After running above queries... DB size of 76.1 Megs
After running optimize... DB size of 75.9 Megs
So, roughly a 5.9 Meg space gain from deleting logs alone. And I clean the logs out about once every three months.
EDIT BY: Will--> added 2 new queries
Code:truncate ibf_admin_login_logs;
Code:truncate ibf_moderator_logs;
Lease Reviewed by Lease on . [TUT]Quick cleaning of logs Log entries in the SQL DB can become quite unruly if they are not kept in check. This can quickly grow out of hand. Right now on my forum, I have 73,838 spider logs since I last deleted... What good are these? None. Go to your ACP->SQL Toolbox (or phpMyAdmin) and issue the following query.. truncate ibf_admin_logs; truncate ibf_admin_login_logs; truncate ibf_email_logs; truncate ibf_mail_error_logs; truncate ibf_moderator_logs; truncate ibf_spider_logs; Rating: 5Extremely helpful article about hiding your identity here
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Cleaning Up the Mess After a Major Hack Attack
By Daniel in forum News & Current EventsReplies: 0Last Post: 4th Jan 2012, 03:17 PM -
best way to clean system logs /var/logs
By mp3show in forum Webmaster DiscussionReplies: 3Last Post: 18th Aug 2011, 10:37 AM -
[Hiring] After Effects Editor (Quick Job = Quick Money)
By MasterDKR in forum Completed TransactionsReplies: 4Last Post: 21st Jun 2011, 08:09 PM
themaPoster - post to forums and...
Version 5.22 released. Open older version (or...