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

No-log

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.

CLEAR Mikrotik LOG WINDOW HISTORY [Jz]


/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 🙂

CLEAR Mikrotik TERMINAL CONSOLE HISTORY [Jz]

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 😉


Regard’s
Syed Jahanzaib

Advertisements

6 Comments »

  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

    Like

    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

    Like

    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)

    Liked by 1 person

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

  4. suggest me how to delete history of
    (“system->users->active users”) after winbox logout also history stored in “active users” tab
    with name, date, from IP via winbox …. so suggest me how to clear those history from “ACTIVE USERS” tab….. Thank you

    Like

    Comment by shivakanth — March 3, 2018 @ 2:54 PM


RSS feed for comments on this post. TrackBack URI

Leave a Reply

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

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s

%d bloggers like this: