[Bro] Reading a table from an external file
Robin Sommer
robin at icir.org
Fri Jul 31 07:53:23 PDT 2015
On Thu, Jul 30, 2015 at 19:47 +0000, you wrote:
> Naturally, I can't follow the example. My table will have three
> fields, all of which are sets. How can I read in sets?
Take a look at the test in
testing/btest/scripts/base/frameworks/input/setseparator.bro, that
reads in a set, using '|' as the element separator. (If you don't set
that explicitly, it's comma instead.)
Btw, the test suite has a bunch of more tests for the input framework,
which can provide inspiration for more involved use cases that aren't
covered elsewhere.
Robin
--
Robin Sommer * ICSI/LBNL * robin at icir.org * www.icir.org/robin
More information about the Bro
mailing list