mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
![]() The MHR script involves a "when" statement which can be expensive due to the way it clones frames/vals. In this case, the fa_file record is expensive to clone, but this change works around that by unrolling only the necessary fields from it that are needed to populate a Notice::Info record. A drawback to this is that the full fa_file or connection records aren't available in the Notice::Info record when evaluating Notice::policy hooks for MHR hit notices (though they can possibly be recovered by using e.g. the lookup_connection() builtin_function). |
||
---|---|---|
.. | ||
actions | ||
extend-email | ||
__load__.bro | ||
cluster.bro | ||
main.bro | ||
non-cluster.bro | ||
README | ||
weird.bro |
The notice framework enables Bro to "notice" things which are odd or potentially bad, leaving it to the local configuration to define which of them are actionable. This decoupling of detection and reporting allows Bro to be customized to the different needs that sites have.