How to make MikroTik beep if there's error on logs



That script was created to do what you’re looking for. Latest version is here: http://forum.mikrotik.com/t/is-it-possible-to-run-a-script-on-login/55422/1 There are only a few minor changes you would have to make.

First, copy/paste the script into a new Schedule. Edit the SETUP block at the top. Change the scheduleName to match the name of your schedule. You can delete the email address line. Change the next line to find only logs that contain the words “login failure”, and assuming you don’t want to filter out any logs, just declare the removeThese array without any value. Like this:

# BEGIN SETUP
:local scheduleName "mySchedule"
:local startBuf [:toarray [/log find message~"login failure"]]
:local removeThese
# END SETUP

Then, at the bottom of the script, change the “/tool e-mail send …” line to:

:beep

Set the schedule interval to run as frequently as you want to check for new logs.