Delete the usermanager log.

Howdy,

Is there a way to remove/delete the usermanager log?

I have a usermanager log of over 330,000 items, mainly authentication failures generated pre-2.9.30 before the logging options became available.

I noticed that when i open the log in usermanager that my routers CPU utilisation goes to 100% for several seconds. Resorting the log also causes several seconds of 100% router CPU utilisataion.

Regards…ƒil

we are working on that, in the one of the next versions you will be able to delete the logs and sessions.


again, thaaaaannnk youuuu ULDIS and MT Team

Hasbullah.com

Schedule script for task you

Schedule folow script, interval 20 seconds.

file receive all log and you manager file.

: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];}

Hi Allac,

Thanks so much, your script has removed all my logs. It did take about 45 minutes at ~90% processor…i was worried that it would never finish.

Thanks again mate.

External logging would be an idea..

Please How do I run this schedule I dont know how?
Pls. direct me on step by step via console of Terminal

I tried running this script manually - but nothing happened apart from maxing out the CPU for 2-3 minutes.

The script worked perfectly for me.

I only pasted the script in and ran it manually. In winbox, system->scripts create new, paste in the script. Highlight and click run script button.

It created a (250MB) log file in the root directory of my usermanager router. The complete 330,000 item usermanager log was removed.
I didn’t even bother to have a look at what the log file contained, I just deleted it.

Thanks allac, this is a great script that works for me without hassle.