I am trying write a bro analyzer plugin. My directory structure for my plugin is shown below.
My scripts load.bro loads my init.bro and analyzer/test/test.bro. My test.bro file registers
for ‘event bro_init’ in which I am registering for some ports. Even though I can see both my bro
scripts are loaded in loaded_scripts.log, my bro_init event is never triggered and hence I never
register for my ports. I can it’s not being invoked because, my print in that function don’t show
and up and it doesn’t complain even if I put syntactically incorrect code in my bro_init function.
Could someone shed some light on why my bro_init event is not getting triggered or if I am
doing something wrong. Thanks.
-- bif -- __load__.bro -- events.bif.bro– test.bif.bro
-- scripts -- __load__.bro -- analyzer– test
-- test.bro– init.bro