I’m working on email separation between users and admins on my local Bro instance and I’m not understanding the syntax for either the “Site::get_emails” or the “Site::local_admins” variables for ACTION_EMAIL_ADMIN. Since I avoid functions, I attempted to redefine the following in my local.bro:
## Function that returns a comma-separated list of email addresses
## that are considered administrators for the IP address provided as
## an argument.
## The function inspects :bro:id:`Site::local_admins`.
global get_emails: function(a: addr): string;
For context on this functionality, it was written for Universities with distributed administrators for all of the networks. It was written so I could load the database of network admins into Bro and have it email the responsible party automatically.