mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00

This is based on commit 99e6942efec5feff50523f6b2a1f5868f19ab638 from the zeek-docs repo.
17 lines
285 B
Text
17 lines
285 B
Text
module Test;
|
|
|
|
export {
|
|
redef enum Log::ID += { LOG };
|
|
|
|
type Info: record {
|
|
msg: string &log;
|
|
num: count &log;
|
|
};
|
|
|
|
global log_test: event(rec: Test::Info);
|
|
}
|
|
|
|
event zeek_init() &priority=5
|
|
{
|
|
Log::create_stream(Test::LOG, [$columns=Test::Info, $ev=log_test, $path="test"]);
|
|
}
|