mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

- Use `-b` most everywhere, it will save time. - Start some intel tests upon the input file being fully read instead of at an arbitrary time. - Improve termination condition for some sumstats/cluster tests. - Filter uninteresting output from some supervisor tests. - Test for `notice_policy.log` is no longer needed.
18 lines
548 B
Text
18 lines
548 B
Text
# @TEST-EXEC: zeek -b -r ${TRACES}/wikipedia.trace %INPUT >out
|
|
# @TEST-EXEC: btest-diff http.log
|
|
|
|
@load base/protocols/http
|
|
|
|
module Foo;
|
|
|
|
event zeek_init() {
|
|
|
|
Log::remove_default_filter(HTTP::LOG);
|
|
|
|
local filter: Log::Filter = [$name = "http",
|
|
$pred = function(rec: HTTP::Info): bool {
|
|
rec$id$orig_h = remask_addr(rec$id$orig_h, 0.0.0.0, 112);
|
|
return T;
|
|
}];
|
|
Log::add_filter(HTTP::LOG, filter);
|
|
}
|