Community discussions

MikroTik App
 
wiyat
newbie
Topic Author
Posts: 43
Joined: Tue Jan 12, 2010 9:38 pm
Contact:

How to remove logs under tools user-manager session

Fri Jan 15, 2010 8:06 pm

Dear
All


I have problem with my Radius because it have 2 Millions of logs but i don't know how I can remove/delete because the only way that i know if one by one, this process isn't good to me.- For this reason I request to you the help, maybe you know any script to execute and delete automatically this logs that I have under user-manager session at the same time I have more logs under /tools user-manager logs but I don't know if the same information.

My request is: Did you know any script that can remove this log, please

I read on internet on the next link the follow information: http://forum.mikrotik.com/viewtopic.php?f=10&t=21214


CLEAR USERMAN LOG SCRIPT:

:local Flag
:set Flag [/tool user-manager log find]
:if ([:len $Flag] > 0) do={/tool user-manager log print append file log;/tool user-manager log remove [/tool user-manager log find];}

BUT WHEN I EXECUTE THE BELOW SCRIPT, NOT WORK FINE I GET THE NEXT ERROR:
:set Flag [/tool user-manager log find]
syntax error (line 1 column 13)

I don't know if the problem is that when the other user made the below script used the other mikrotik OS version.

Thank you, please send me your comments.

Best regards.

mark
 
wiyat
newbie
Topic Author
Posts: 43
Joined: Tue Jan 12, 2010 9:38 pm
Contact:

Re: How to remove logs under tools user-manager session

Mon Jan 18, 2010 12:30 pm

Dear
All

Can you help me with this please
 
User avatar
romuotik
just joined
Posts: 9
Joined: Sat Jul 19, 2008 4:29 am
Location: Egpyt
Contact:

Re: How to remove logs under tools user-manager session

Tue Nov 05, 2013 5:07 pm

hi
you can use

/tools/user-manager/logs/remove
and enter
:numbers:1-XXXXX
and enter
good luck

Who is online

Users browsing this forum: MSN [Bot] and 96 guests