PDA

View Full Version : Administrative and Maintenance Tools - ZH - Clean Log


Ziki
01-30-2007, 10:00 PM
This modification was brought to you by
KXDesign
http://www.kxdesign.com/


~Hack name
Clean Log

~Hack description
This hack allows your to prune all entries from cron log,mod log and admin log.As I am the only admin on my site I don't really need this info.It just takes too much space in my database and I don't like clicking it all the time.With this hack I only have to click one button and boom!All entries are gone ;)

Works with log logins hack by Abe1

~Hack options
None

~Hack info
File uploads: 1
File edits: 0
Templates: 0
Template edits: 0
Plugins: 1
SQL Queries: 0
Phrases: 2
Settings: 0
Hooks: 0

Install time: 3 sec
Install level: Easy

~Hack installation

Step 1: Import Product

Step 2: Upload zh_cleanlog.php to your ./includes/cron/ directory



~Hack screenshots
None


~Hack copyright
This may not be distributed,released or claimed as your work without author's permission.

Ziki
01-31-2007, 10:00 PM
~Reserved~

TheBlackPoet
01-31-2007, 10:11 PM
in installed and pruned 41,00+ entries.... bye-bye..... thanks....

Ziki
01-31-2007, 10:13 PM
Yes I guess I should also include a count :) thanks will add in a few mins

Genjuro-Sensei
01-31-2007, 10:18 PM
Thx, will install right after the count version is out ;)

Ziki
01-31-2007, 10:28 PM
1.0.1 released

Counting added :)

Ziki
02-01-2007, 12:53 AM
Cron job added :)

FleaBag
02-01-2007, 01:14 AM
Where do I find it in the ACP?

Tulsa
02-01-2007, 02:13 AM
It's hiding under maintenance > update counters, last item.

da420
02-01-2007, 02:52 AM
Awesome, 42,400 something entries cleared. Thanks Ziki...

rinkrat
02-01-2007, 04:03 AM
Deleting 282161 entries from log....

Done

Thanks

roger.kore
02-01-2007, 05:47 AM
Very nice, thanks a lot.
As suggestion, integrate it with logLogins hacks? To clean it too ;D

Lizard King
02-01-2007, 06:01 AM
Nice job :)

bashy
02-01-2007, 08:49 AM
Installed thanks, I have like 4500+ entries in the log logins hack, would be great if you can included in this please?

soulface
02-01-2007, 10:14 AM
Deleting 97566 entries from log...

LOL. 3yrs of logs

/me installed

Ziki
02-01-2007, 10:23 AM
Very nice, thanks a lot.
As suggestion, integrate it with logLogins hacks? To clean it too ;D

will be added

projectego
02-01-2007, 12:27 PM
Awesome! Nice work, Ziki. :)

bashy
02-01-2007, 04:46 PM
will be added
Thanks Ziki, Look forward to the update :)

Ziki
02-01-2007, 05:05 PM
Lol I didn't know this would become such hit :p

da420
02-01-2007, 05:44 PM
It's very usable... Ziki is the king of simple, yet great usable mods.

Ziki
02-01-2007, 05:47 PM
I'm honored :)

pauloo
02-25-2007, 08:12 AM
Nice thank you !

Keyser S?ze
02-25-2007, 01:23 PM
Deleting 103285 entries from log...

WOW thanks for the mod

Ziki
03-13-2007, 05:14 PM
1.0.2 released

Works now with log logins hack as requested :)

projectego
03-13-2007, 05:20 PM
Thanks for the update, Ziki! ;)

Seb@
03-19-2007, 01:00 AM
ZH - Clean Log


Fatal error: Call to a member function on a non-object in /home/xxxxxxxx/public_html/foros/includes/cron/zh_cleanlog.php on line 9

:(

Ziki
03-19-2007, 12:39 PM
What vb version?

Seb@
03-21-2007, 01:35 AM
What vb version?

vb 3.6.5 :(

Ziki
03-21-2007, 06:57 PM
Did you reupload the new version?

Seb@
03-22-2007, 02:58 AM
yep men :(

Dismounted
03-22-2007, 06:29 AM
ZH - Clean Log


Fatal error: Call to a member function on a non-object in /home/xxxxxxxx/public_html/foros/includes/cron/zh_cleanlog.php on line 9

:(
In zh_cleanlog.php, find all instances of:
$db->
Replace With:
$vbulletin->db->

Try that :p.

Seb@
03-23-2007, 12:16 AM
Nice Men Thanks

ZH - Clean Log

Deleting 18267 entries from log...
Done cleaning log
Done

Ziki
03-23-2007, 12:00 PM
Those who had cron problems please reupload the zh_cleanlog.php

projectego
03-23-2007, 12:05 PM
Thanks for the 1.0.2 update, Ziki. :)

bluechris
03-23-2007, 01:33 PM
I updated to the latest version and my box crashed totally for some reason... i did the upgrade in the mod as normal, replaced the .php file and update the product.
The crashed occured when i runned the schedulle manually.

In the logs that i received just before the hung of the server i saw that forum lost connectivity to mysql totally. This huppened immediatly when i runned the schedulle task, so after the rst i disabled the plugin and atm i dont dare to run it.... cause that never huppend again in that server.
Anyone else have seen this kind of behavior?

Ziki
03-23-2007, 02:20 PM
I updated to the latest version and my box crashed totally for some reason... i did the upgrade in the mod as normal, replaced the .php file and update the product.
The crashed occured when i runned the schedulle manually.

In the logs that i received just before the hung of the server i saw that forum lost connectivity to mysql totally. This huppened immediatly when i runned the schedulle task, so after the rst i disabled the plugin and atm i dont dare to run it.... cause that never huppend again in that server.
Anyone else have seen this kind of behavior?

I don't really think that is normal.

thincom2000
03-24-2007, 05:13 AM
O_O Did you have several billion log entries?

bolly.beats
03-24-2007, 07:55 AM
Deleting 34953 entries from log...

O Boy this is really cool.

bluechris
03-24-2007, 08:15 AM
Strange strange strange... what can i say... i choosed a low traffic time and i runned it again and runned fine.
ZH - Clean Log
Deleting 19231 entries from log...
Done cleaning log

I still havent figured what caused it but its ok now... sorry for the alert... maybe it was a strange coinsindence that huppened who knows.

Ziki
03-24-2007, 12:53 PM
I think the system was just overloaded.

yoyoyoyo
10-04-2007, 11:21 AM
cleaned 20729 entries and the board I ran it on is only 3 weeks old! thanks much

SuperTaz
11-05-2007, 08:05 AM
Installed....

Deleting 38956 entries from log...
Done cleaning log
lol

deezelpope
11-05-2007, 09:19 AM
Deleting 1 entries from log...
Done cleaning log


LOL!:D

Ziki
11-05-2007, 10:51 AM
Deleting 1 entries from log...
Done cleaning log


LOL!:D


Do you even use the admincp ??? :p

deezelpope
11-05-2007, 10:52 AM
Do you even use the admincp ??? :p
Sure I do! Guess that's why I'm kinda surprised there was just the one.

I'm laughing...

momo2
11-25-2007, 11:20 AM
wow thanksssssssss

so i don't have to do any more ?
TRUNCATE TABLE `adminlog`;

Ziki
11-26-2007, 11:08 AM
Nope :)

m2006
01-13-2008, 08:25 AM
Thanks for mod good....

show

Deleting 44463 entries from log...
Done cleaning log

F0xy
03-17-2008, 11:50 AM
13177 wiped, brilliant