Intel Framework, Notices, and sending out emails

Hello all,
I am standing up what will become my first production Bro server. I am most interested in the Intel Framework and alerting on Intel hits and sending those alerts to the team.

So far in testing the Intel framework is working great and the hits are going to the notice.log per the exercise from the 2013 exchange ( I have about 28k domain names in there and it seems to be working great).

The problem I am having is sending email alerts from the notices. If I append the following into local.bro (from the post then it seems to kill the intel hits (none to notices and no intel.log generated).

hook Notice::policy(n: Notice::Info)
add n$actions[Notice::ACTION_ALARM];

If this section of code comes before the intel framework section, then the intel hits function fine, but I get no emails.

My broscripting talents are still in development (i.e. I am not very good at it), but it seems like I am overwriting a variable (n) since it is used for the notice script and in do_notice. Or I may be completely wrong - I admit I have much to learn.

Has anyone else scripted emailing Intel hits out to the the team and could point me in the right direction? Ideally I want the intel hits to go to notice.log and email out anything that goes to notices.

My section for the Intel Framework in local.bro is the following:

@load policy/frameworks/intel/seen
@load frameworks/intel/do_notice

redef Intel::read_files += {

Best Regards,


add n$actions[Notice::ACTION_EMAIL];

The alarm action may be a little confusing. What's it doing is batching up notices and then sending them out on your log rotation interval in a single email. It's sort of the lower priority notices that you don't care about receiving the instant they occur but you'd still like to know about them soon.

You also have the ability to do multiple actions per-notice so you don't need to worry about overwriting an action if you add multiple. :slight_smile:


Thanks Seth - that works.