This is the broccoli-ruby extension for Ruby which provides access to the Broccoli API. Broccoli is a library for communicating with the Bro Intrusion Detection System.
You can find the latest Broccoli-Ruby release for download at http://www.bro.org/download.
Broccoli-Ruby’s git repository is located at git://git.bro.org/broccoli-ruby.git. You can browse the repository here.
This document describes Broccoli-Ruby 1.61. See the CHANGES
file for version history.
To install the extension:
broccoli-config
binary is in your path.
(export PATH=/usr/local/bro/bin:$PATH
)sudo ruby setup.rb
.To install the extension as a gem (suggested):
broccoli-config
binary is in your path.
(export PATH=/usr/local/bro/bin:$PATH
)sudo gem install rbroccoli
.There aren’t really any useful docs yet. Your best bet currently is to read through the examples.
One thing I should mention however is that I haven’t done any optimization yet. You may find that if you write code that is going to be sending or receiving extremely large numbers of events, that it won’t run fast enough and will begin to fall behind the Bro server. The dns_requests.rb example is a good performance test if your Bro server is sitting on a network with many dns lookups.
If you have a question/comment/patch, see the Bro contact page.