How to view logs

I wish to run the following script:

\

print some debug info

:log info ("dyndns-update: username = $username")
:log info ("dyndns-update: password = $password")
:log info ("dyndns-update: hostname = $hostname")
:log info ("dyndns-update: previousIP = $previousIP")


How do I set up /system/logging in winbox so that I can see this log info on the log window? Presently when I view the realtime log by clicking on log, I see many firewall logs scrolling away. I wish to turn off the info firewall log and just view the info above when I run the script.

Thanks,

Make a new log action that also targets memory, but has a unique name. Subscribe “script” to it under the logging section.

Then bring up the log window and use the dropdown in the top right to select the action you created and the log window will show only those entries.

You can also use ‘where’ filters in the CLI but I gather you’re using Winbox.