Community discussions

MUM Europe 2020
 
User avatar
kometchtech
Member Candidate
Member Candidate
Topic Author
Posts: 194
Joined: Sat Jun 15, 2013 4:25 am
Location: Japan
Contact:

For filtering of log

Mon Feb 02, 2015 8:53 am

Hello, all

Although log such as the following when you add all at once to the address list, etc. Script is output, I wonder Is there a way to suppress it?
/system logging
add action=memory topics=!system,!info
15:49:56 system, info address list entry removed by admin
15:49:56 system, info address list entry removed by admin
15:49:56 system, info address list entry removed by admin
15:49:56 system, info address list entry removed by admin
15:49:56 system, info address list entry removed by admin

Best regards.
--
Routerboard Users Group JP
http://www.rb-ug.jp/
CCR1009-8G-1S-1S+, RB750Gr3, CRS226-24G-2S+, RB850Gx2, RB960PGS, CRS317-1G-16S+,
RB2011UAS, CRS125-24G-1S, RB962UiGS-5HacT2HnT, CRS212-1G-10S-1S+, RB3011UiAS
 
alexrn
just joined
Posts: 2
Joined: Mon Feb 29, 2016 12:28 pm

Re: For filtering of log

Mon Feb 29, 2016 1:20 pm

I had the same issue, but not found any solution to filter the logs. But I found the solution that we can use inside the script.
# Disable Logging so each add and remove isn't in the system log, we turn it back on at the end
:log debug "Disabling system Logging";
/system logging disable

.... {your code here} ....

# Enable the Logging
:log debug "Enabling system logging";
/system logging enable
 
User avatar
Splash
Member Candidate
Member Candidate
Posts: 151
Joined: Fri Oct 16, 2015 10:09 am
Location: Johannesburg, South Africa

Re: For filtering of log

Mon Feb 29, 2016 2:00 pm

Hello,

You could try this, but it may hide other system log messages you still want. In a nutshell edit the default 'info' topic and add an additional topic 'system' but in this case, negate it so that it ignores all info-system messages.

Check the number of the logging item, to make sure you are editing the correct one.
/system logging
set 0 action=memory topics=info,!system
Capture222.PNG
You do not have the required permissions to view the files attached to this post.
MTCNA, MTCRE, MTCINE, MTCTCE, MTCIPv6E, MTCUME

Who is online

Users browsing this forum: chilliflakes, fedus, fruitjuice, gfucka, karlisi and 30 guests