Page 1 of 1

How to remove logs under tools user-manager session

Posted: Fri Jan 15, 2010 8:06 pm
by wiyat
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

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

Posted: Mon Jan 18, 2010 12:30 pm
by wiyat
Dear
All

Can you help me with this please

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

Posted: Tue Nov 05, 2013 5:07 pm
by romuotik
hi
you can use

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