[Bro] counters

anthony kasza anthony.kasza at gmail.com
Fri Nov 6 17:45:02 PST 2015

Most of the things you mentioned are already available to scriptland from
the C++ core. A little Bro script can accomplish what you are asking. For
example, declare a global variable and increment it inside a new_connection
event, then periodically print to screen.

On Nov 6, 2015 4:52 PM, "Dk Jack" <dnj0496 at gmail.com> wrote:

> Hi,
> I am new to bro and I am writing a plugin. How does one go about adding
> counters.
> In my c++ code, I want to add counters, for things like number
> connections, bytes rcvd/sent,
> protocol parsing errors etc. I want to access them on demand i.e. this is
> mainly for debugging.
> I don't want to write disk. I couldn't find any examples that do this and
> my google search didn't
> yield any satisfactory answers either. Would appreciate it if someone can
> point me the correct
> direction on how to do this in bro. Thanks.
> Dnj
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20151106/3d0db893/attachment.html 

More information about the Bro mailing list