mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
Attempt to make hostname notice email extension work and small format adjustments.
This commit is contained in:
parent
9413e7f58c
commit
75e5caeff5
3 changed files with 9 additions and 18 deletions
|
@ -17,25 +17,16 @@ event Notice::notice(n: Notice::Info) &priority=10
|
|||
{
|
||||
when ( local src_name = lookup_addr(n$src) )
|
||||
{
|
||||
output = cat(output, "orig_h/src: ", src_name, "\n");
|
||||
}
|
||||
timeout 5secs
|
||||
{
|
||||
output = cat(output, "orig_h/src: <timeout>\n");
|
||||
output = string_cat("orig_h/src hostname: ", src_name, "\n");
|
||||
n$email_body_sections[|n$email_body_sections|] = output;
|
||||
}
|
||||
}
|
||||
if ( n?$dst )
|
||||
{
|
||||
when ( local dst_name = lookup_addr(n$dst) )
|
||||
{
|
||||
output = cat(output, "resp_h/dst: ", dst_name, "\n");
|
||||
}
|
||||
timeout 5secs
|
||||
{
|
||||
output = cat(output, "resp_h/dst: <timeout>\n");
|
||||
output = string_cat("resp_h/dst hostname: ", dst_name, "\n");
|
||||
n$email_body_sections[|n$email_body_sections|] = output;
|
||||
}
|
||||
}
|
||||
|
||||
if ( output != "" )
|
||||
n$email_body_sections[|n$email_body_sections|] = output;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue