change Log enum to Input enum.

This commit is contained in:
Bernhard Amann 2011-11-28 13:28:44 -08:00
parent be1b3ce5e1
commit 4975584e01
9 changed files with 35 additions and 36 deletions

View file

@ -15,7 +15,7 @@ redef InputAscii::empty_field = "EMPTY";
module A;
export {
redef enum Log::ID += { LOG };
redef enum Input::ID += { INPUT };
}
type Idx: record {
@ -45,8 +45,8 @@ global servers: table[int] of Val = table();
event bro_init()
{
# first read in the old stuff into the table...
Input::create_stream(A::LOG, [$source="input.log"]);
Input::add_tablefilter(A::LOG, [$name="ssh", $idx=Idx, $val=Val, $destination=servers]);
Input::force_update(A::LOG);
Input::create_stream(A::INPUT, [$source="input.log"]);
Input::add_tablefilter(A::INPUT, [$name="ssh", $idx=Idx, $val=Val, $destination=servers]);
Input::force_update(A::INPUT);
print servers;
}