mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +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.
25 lines
456 B
Text
25 lines
456 B
Text
#
|
|
# @TEST-EXEC: bro -b %INPUT
|
|
# @TEST-EXEC: btest-diff ssh.log
|
|
|
|
module SSH;
|
|
|
|
export {
|
|
redef enum Log::ID += { SSH };
|
|
|
|
type Info: record {
|
|
data: string;
|
|
data2: string;
|
|
} &log;
|
|
}
|
|
|
|
redef LogAscii::separator = "|";
|
|
|
|
event bro_init()
|
|
{
|
|
Log::create_stream(SSH, [$columns=Info]);
|
|
Log::write(SSH, [$data="abc\n\xffdef", $data2="DATA2"]);
|
|
Log::write(SSH, [$data="abc|\xffdef", $data2="DATA2"]);
|
|
Log::write(SSH, [$data="abc\xff|def", $data2="DATA2"]);
|
|
}
|
|
|