mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00

* origin/topic/seth/zeek_init: Some more testing fixes. Update docs and tests for bro_(init|done) -> zeek_(init|done) Implement the zeek_init handler.
24 lines
334 B
Text
24 lines
334 B
Text
#
|
|
# @TEST-EXEC: bro -b %INPUT
|
|
# @TEST-EXEC: btest-diff test.log
|
|
|
|
redef LogAscii::empty_field = "EMPTY";
|
|
|
|
module test;
|
|
|
|
export {
|
|
redef enum Log::ID += { LOG };
|
|
|
|
type Log: record {
|
|
ss: set[string];
|
|
} &log;
|
|
}
|
|
|
|
event zeek_init()
|
|
{
|
|
Log::create_stream(test::LOG, [$columns=Log]);
|
|
|
|
Log::write(test::LOG, [
|
|
$ss=set("EMPTY")
|
|
]);
|
|
}
|