mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00

- Moved the Notice::notice event and Notice::policy table to both be hooks. - Renamed the old Notice::policy to Notice::policy_table and documented it as deprecated.
21 lines
400 B
Text
21 lines
400 B
Text
# @TEST-EXEC: bro -C -r $TRACES/web.trace %INPUT
|
|
# @TEST-EXEC: btest-diff alarm-mail.txt
|
|
|
|
hook Notice::policy(n: Notice::Info) &priority=1
|
|
{
|
|
add n$actions[Notice::ACTION_ALARM];
|
|
}
|
|
|
|
redef Notice::force_email_summaries = T;
|
|
|
|
redef enum Notice::Type += {
|
|
Test_Notice,
|
|
};
|
|
|
|
event connection_established(c: connection)
|
|
{
|
|
NOTICE([$note=Test_Notice, $conn=c, $msg="test", $identifier="static"]);
|
|
}
|
|
|
|
|
|
|