zeek/testing/btest/scripts/base/frameworks/logging/ascii-escape-notset-str.zeek
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

24 lines
355 B
Plaintext

#
# @TEST-EXEC: zeek -b %INPUT
# @TEST-EXEC: btest-diff test.log
module Test;
export {
redef enum Log::ID += { LOG };
type Log: record {
x: string &optional;
y: string &optional;
z: string &optional;
} &log;
}
event zeek_init()
{
Log::create_stream(Test::LOG, [$columns=Log]);
Log::write(Test::LOG, [$x=LogAscii::unset_field, $z=""]);
}