I have my devices configured to send all logs to a logging service (Papertrail):
[admin@mikrotik-ap-2] > /system logging print where action="papertrail"
Flags: X - disabled, I - invalid, * - default
# TOPICS ACTION PREFIX
0 !debug papertrail
!dns
I also have some scheduled scripts. I noticed that one of the scheduled scripts wasn’t logging output that it should.. it’s a firmware upgrader that should either
:log info "Firmware doesn't need upgrading"
or
:log warning "Upgrading firmware!"
.
Running the script manually revealed a syntax error:
[admin@mikrotik-ap-2] /system script> run 0
bad command name get (line 1 column 8)
This syntax error,
bad command name get (line 1 column 8)
, never appeared in my Papertrail logs. It looks like if the scheduler gets an error from script execution, it’s just swallowed, which would be a bad behavior to have!
Have I misconfigured something?