Community discussions

MikroTik App
 
firstzerg
just joined
Topic Author
Posts: 1
Joined: Sun Apr 08, 2018 8:22 am

Feature request: Add script as system logging action

Sun Apr 08, 2018 9:26 am

  • It would be great to run a user script on event in log.
    As the script parameter can be set some variable containing the id of the row in the log.
  • In system logging rules need to be added prefix filter as regexp or string containment
That will help to remove some scheduled tasks. Will give more flexibility for different events.
 
NEOhidra
just joined
Posts: 8
Joined: Sun Apr 08, 2018 10:01 am

Re: Feature request: Add script as system logging action

Sun Apr 08, 2018 10:04 am

+1
Having instant notifications for logins would be nice.
 
User avatar
doneware
Trainer
Trainer
Posts: 647
Joined: Mon Oct 08, 2012 8:39 pm
Location: Hungary

Re: Feature request: Add script as system logging action

Mon Jun 25, 2018 10:56 pm

As the script parameter can be set some variable containing the id of the row in the log.
what if it would contain the whole log message in a variable (e.g. $logmessage) and also some others, like
- $logseverity: debug..crit
- $logtopic: array of all corresponding topics/subsystems

i suppose timestamp is unnecessary if the script is fired upon event occurence.

Who is online

Users browsing this forum: BrianTob, holvoetn, johnson73, oskarsk and 57 guests