I wanted to log output only when the specific processing.

Hello, all

Message similar to the following when adding multiple Address address-list the daily Script to exclude specific IP to make sure it is, but in large amounts of output.

/ip firewall address-list
remove [/ip firewall address-list find list=RU]
add address=2.60.0.0/14 list=RU
add address=2.92.0.0/14 list=RU
add address=5.1.48.0/21 list=RU
add address=5.2.32.0/19 list=RU
add address=5.3.0.0/16 list=RU
add address=5.8.0.0/18 list=RU
add address=5.8.64.0/19 list=RU
add address=5.8.160.0/20 list=RU
add address=5.8.176.0/21 list=RU
add address=5.8.192.0/19 list=RU
add address=5.8.224.0/20 list=RU
add address=5.11.64.0/20 list=RU



22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin
22:33:41 system,info address list entry added by admin

Log output to stop when this Script is executed, but there was way??

My best regards.

Not sure i understand, but if you want to ommit logs on your router, you can achieve this by disabling some outputs in system/logging/rules.

Thanks for the reply.

You should do so in this case, exclude info and system?
If the Prefix is in this case how do I specify what?

/system logging
add action=devnull prefix=address topics=!system,!info

My best regards.

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

http://forum.mikrotik.com/t/for-filtering-of-log/85052/1