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