Community discussions

MikroTik App
 
scracha
newbie
Topic Author
Posts: 25
Joined: Fri Dec 27, 2013 3:28 am

Ignore action for logging

Thu Aug 20, 2015 8:17 am

Is there any way to ignore a logging action. Specifically I've got billing software that logs into routerboards every 5 minutes via the API and SSH. Bit of pain having to trawl through the log file to see "real" errors.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2975
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Ignore action for logging

Thu Aug 20, 2015 8:36 am

Install any external Syslog server and redirect messages to it. Syslog server (eg. syslog-ng ) lets you to filter incoming data and split it into different files for easy monitoring.
 
marting
Member Candidate
Member Candidate
Posts: 172
Joined: Thu Aug 21, 2014 2:07 pm

Re: Ignore action for logging

Thu Aug 20, 2015 10:39 am

You could disable the info rule at /system logging. Info is just info and nothing critical.

This way you will loose some other info messages (like ether port up/down or rule changed). If you need some of the info message you could add a separate Topic for this (e.g. interface for if up/down). But you will have no possibility at the default log to readd "rule changed" entries as they only have topics system and info.
 
scracha
newbie
Topic Author
Posts: 25
Joined: Fri Dec 27, 2013 3:28 am

Re: Ignore action for logging

Thu Aug 20, 2015 11:34 pm

Ok, I'll try the latter. I was trying it the other way by adding a specific topic and disabling it but of course it just ignored the disabled rule ...doh!
 
scracha
newbie
Topic Author
Posts: 25
Joined: Fri Dec 27, 2013 3:28 am

Re: Ignore action for logging

Sat Aug 22, 2015 12:08 am

Seems to be working for me. Thanks guys.

/system logging
set 0 disabled=yes
add topics=interface
add topics=dhcp
add topics=firewall
add topics=route

Who is online

Users browsing this forum: No registered users and 12 guests