mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00

- bro.init was renamed to base/init-bare.bro and base/all.bro was renamed to init-default.bro. - To run in "bare mode" with only the init-bare.bro and no other scripts from base/, use either -b or --bare-mode. - The environment variable to run in "bare mode" has been removed.
23 lines
334 B
Text
23 lines
334 B
Text
#
|
|
# @TEST-EXEC: bro -b %INPUT
|
|
# @TEST-EXEC: btest-diff ssh.log
|
|
|
|
module SSH;
|
|
|
|
export {
|
|
redef enum Log::ID += { SSH };
|
|
|
|
type Log: record {
|
|
t: time;
|
|
f: file;
|
|
} &log;
|
|
}
|
|
|
|
const foo_log = open_log_file("Foo") &redef;
|
|
|
|
event bro_init()
|
|
{
|
|
Log::create_stream(SSH, [$columns=Log]);
|
|
Log::write(SSH, [$t=network_time(), $f=foo_log]);
|
|
}
|
|
|