Jump to content
  • 0
arisgamers

about log limit

Question

how big our log (charlog, loginlog, etc; which are read only) can be?

is there any limitation for log files?

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Some SQL Query to help:

Delete atcommandlog and other logs older than 1 month: (2592000 = (60sec*60min*24hours*30days))

 

DELETE FROM `atcommandlog` WHERE UNIX_TIMESTAMP(`atcommand_date`)<(UNIX_TIMESTAMP(NOW())-2592000);DELETE FROM `picklog` WHERE UNIX_TIMESTAMP(`time`)<(UNIX_TIMESTAMP(NOW())-2592000);DELETE FROM `zenylog` WHERE UNIX_TIMESTAMP(`time`)<(UNIX_TIMESTAMP(NOW())-2592000);DELETE FROM `branchlog` WHERE UNIX_TIMESTAMP(`branch_date`)<(UNIX_TIMESTAMP(NOW())-2592000);DELETE FROM `mvplog` WHERE UNIX_TIMESTAMP(`mvp_date`)<(UNIX_TIMESTAMP(NOW())-2592000);DELETE FROM `npclog` WHERE UNIX_TIMESTAMP(`npc_date`)<(UNIX_TIMESTAMP(NOW())-2592000);DELETE FROM `chatlog` WHERE UNIX_TIMESTAMP(`time`)<(UNIX_TIMESTAMP(NOW())-2592000);DELETE FROM `loginlog` WHERE UNIX_TIMESTAMP(`time`)<(UNIX_TIMESTAMP(NOW())-2592000); 

Share this post


Link to post
Share on other sites
  • 0

how big our log (charlog, loginlog, etc; which are read only) can be?

is there any limitation for log files?

It can be as big as your hard disk capacity (i.e until your hd space runs out)

P.S: Those tables are not read only, server writes in it too.

Share this post


Link to post
Share on other sites
  • 0

do it have any self control (auto delete old row)?

It doesn't do that, You might have to setup external scripts for that.

Share this post


Link to post
Share on other sites
  • 0

those table don't have primary key, can not be edited

 

solved, thanks

Edited by arisgamers

Share this post


Link to post
Share on other sites
  • 0

They sure have all primary keys as you can see on sql-files/logs.sql. And in case they hadn't they could still be edited, but just not as efficiently as if they had.

 

Dastgir's queries seem fine to me.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.