I am a beginner with Zeek NSM. I have written a script that generates simply notice logs
. I don't know where should I place this script or which steps should I follow to generate notice logs
or my custom logs
I have already go through the documentation of Zeek
and figure out these basic steps.
make a folder in
/nsm/bro/share/bro/site/
with your script name.place your script in this folder.
make a new script
main.bro
and write@load <mycustomScript>.bro
in it.Than write your folder name (in which you place your script) in
loaded_scripts.bro
.Than run the following commands...
i. broctl stop
ii. broctl check
iii. broctl deploy
iv. broctl start
You will find the logs in the same folder (in which we place our script). but after doing all these steps, there are still no logs in that folder.
....................................... basic script for generating notice logs: .......................................
@load base/frameworks/notice
export {
redef enum Notice::Type += {
Test_Notice,
};
event bro_init()
{
NOTICE([$note=Test_Notice, $msg=fmt("Testing the Notice Framework")]);
}
Kindly tell me is this the write sequence of commands to run a custom script? or there is something wrong? or there some additional task required to run the script and generate notice logs?