[Bro] Passing options to Bro plugins from a file

Gary Faulkner gfaulkner.nsm at gmail.com
Sun Aug 9 16:45:01 PDT 2015

I'd like to read options into a plugin such as IP addresses, hostnames,
ports, etc from a configuration file. Looking at the redis plugin for
inspiration, it looks like I could set types in the bif, set initial
values in the plugin's init.bro and then redef in local.bro? Is this
correct? Am I missing anything?

For example I'd like to have a bro script that can call a function from
scriptland to shove data into external DB. A use case may be something
such as writing time series data directly to InfluxDB. Instead of hard
coding the IP, port, etc into the plugin I'd like to be able to specify
the location in a file. I might also use the file to define a tag
structure for InfluxDB.


More information about the Bro mailing list