mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
fix strange bug when using predicates and events at the same time on a tablefilter.
Testcase is now more involved.
This commit is contained in:
parent
d81607c3e9
commit
d553a3c6f6
3 changed files with 249 additions and 25 deletions
|
@ -107,7 +107,15 @@ event bro_init()
|
|||
try = 0;
|
||||
# first read in the old stuff into the table...
|
||||
Input::create_stream(A::INPUT, [$source="../input.log", $mode=Input::REREAD]);
|
||||
Input::add_tablefilter(A::INPUT, [$name="ssh", $idx=Idx, $val=Val, $destination=servers, $ev=line]);
|
||||
Input::add_tablefilter(A::INPUT, [$name="ssh", $idx=Idx, $val=Val, $destination=servers, $ev=line,
|
||||
$pred(typ: Input::Event, left: Idx, right: Val) = {
|
||||
print outfile, "============PREDICATE============";
|
||||
print outfile, typ;
|
||||
print outfile, left;
|
||||
print outfile, right;
|
||||
return T;
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue