Community discussions

MikroTik App
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Mikrotik log

Thu Nov 25, 2010 11:43 am

I have Mikrotik RouterOS v4.13. In Winbox, when I view log, it only show me the information for 1 hour. How can I view the log for the last 24 hours.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26385
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Mikrotik log

Thu Nov 25, 2010 11:48 am

Log contains last 100 lines by default, as it's stored in memory (and it's cleared upon reboot). To change this limit, or to change log to "disk" you have to configure it in the "system -> logging" menu.

First, choose where you will store specific logs, for example if you store INFO logs in memory, open the MEMORY action and change the lines from 100 to anything else you want:

Image

Of course, you can change the INFO logs to be saved to DISK (if your disk is magnetic, not NAND flash, because NAND could be damaged if you have thousands of log lines every hour). Then open the DISK action, and also increase the stored lines number, and set how many log files you will keep.
 
User avatar
fatonk
Member
Member
Posts: 438
Joined: Tue Feb 22, 2005 11:06 am
Location: Mitrovica/Kosova

Re: Mikrotik log

Thu Nov 25, 2010 3:02 pm

I prefer having syslog server in the network and store logs remotely.
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: Mikrotik log

Thu Nov 25, 2010 3:23 pm

I have Mikrotik on Intel PC. So I have hard disk not nand (40GB). where I can view the log in the hard disk.



In memory can I change the log from 100 to 2500
In disk , what should I choose the type? It is disk now.
Can I change the line per pages 2500 and file count to 7?
Last edited by namo on Thu Nov 25, 2010 3:29 pm, edited 1 time in total.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26385
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Mikrotik log

Thu Nov 25, 2010 3:25 pm

I have Mikrotik on Intel PC. So I have hard disk not nand. where I can view the log in the hard disk.
I wrote that. Didn't I?

configure the DISK action!
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: Mikrotik log

Thu Nov 25, 2010 3:45 pm

I have Mikrotik on Intel PC. So I have hard disk not nand. where I can view the log in the hard disk.
I wrote that. Didn't I?

configure the DISK action!
I understand now. In rules, all my action was memory. I put tworules for each one for memory and the other for disk. I can change the disk setting for larger lines and memory for less lines.

How much the log take from the memory? Is 2500 line are too much?

I have Intel PC with Total hard disk 38.4GB(38.2GB free) and total 496.4 MiB RAM (free RAM 472.3 MiB)
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: Mikrotik log

Fri Nov 26, 2010 3:05 pm

why is now I see each entry has two lines in Winbox -->log
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26385
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Mikrotik log

Fri Nov 26, 2010 3:15 pm

you probably have two identical log actions.
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: Mikrotik log

Fri Nov 26, 2010 6:01 pm

you probably have two identical log actions.
for each rule , I have one for action memory and another for action disk. Does Winbox log show both so I need only disk?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26385
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Mikrotik log

Mon Nov 29, 2010 9:28 am

yes of course. leave only disk.
 
neutronlaser
Member
Member
Posts: 445
Joined: Thu Jan 18, 2018 5:18 pm

Re: Mikrotik log

Fri Sep 11, 2020 9:11 pm

Wow cool now I have 10,000 entries and I can scroll back. Thank you Mikrotik dream come tru.

Who is online

Users browsing this forum: No registered users and 211 guests