What we want to do now is whenever an IP address is added to this src-list, we want it to email through to our support department so they can be aware of who was added.
Since it simply emails out the log entry itself you cannot easily change the content. You can either log to an external syslog server, parse the incoming logs there and email out alerts, or you can log to memory and write a script that is scheduled to run every minute or so and finds new log lines matching the pattern you are looking for, and then emails you. An example of such a script is on the wiki.
I have config the /tool email and router can send emails (tested OK).
Then I used the following :
/system logging action add name=PSD email-to=a@a.com target=email
/system logging add topics=firewall action=PSD prefix=psd
and also enabled log=yes with log-prefix=psd in my firewall rule.
My problem is that I get emails also from other rules with different prefix e.g. “drop_all”.
It’s very strange and cant find what’s wrong.
RouterOS v6.48.5