Syed Jahanzaib Personal Blog to Share Knowledge !

December 19, 2013

Howto clear Mikrotik Log/History

Filed under: Mikrotik Related — Tags: , , — Syed Jahanzaib / Pinochio~:) @ 10:30 AM


Today I was in a requirement to clear the Mikrotik LOG window and clear all the commands from the Terminal console history dueto some security and privacy reason. Since I couldn’t found a simple command base method to clear LOG window, I followed a workaround and it worked like a charm.


/system logging action set memory memory-lines=1

It will delete all previous entries.

/system logging action set memory memory-lines=100

It will change it back to the default number of lines. or let it set to 1 , if you dont want any info, which is not recommended in any case🙂


In newer version of mikrotik 6.x, you can clear console commands by using

console clear-history

Note: Sticking with newer firmware (but surely stable one) is always a Good idea so that you stay safe and secure with lots of new features🙂

However I really wish that Mikrotik can add an “CLEAR ALL LOGS” button in the future😉

Syed Jahanzaib


  1. hello >> i just want to ask about if there is a kind of rule to put in mikrotik in order to block bad hosts .. or to block the hosts that are trying to login many times using bad usernames … plz thx

    Comment by mahmoud khuffash — March 17, 2014 @ 7:22 PM

  2. Pls can I call you on phone to discourse a project with you on  RB1100 AHx2  or is mail ok. can you setup RB1100AHx2 for me if it runs on a public IP

     smile always

    Comment by adejumokojo — August 4, 2014 @ 3:43 PM

  3. Hello ! Please, I want to clear an history for one user, not a console history but an action historik by graphic mode (with winbox)

    Comment by GAYA — December 20, 2015 @ 6:06 AM

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at

%d bloggers like this: